What do you want to save?
Add Code snippet
New code examples
-
Java 2021-09-28 14:58:03
array rotation program in java
//Rotating array left //d = number of rotations static void rotLeft(int[] a, int d) { //using secondary array of same size int [] n = new int[a.length]; //saving element into array n[] according to newlocation of rotations(d) for(int i = 0; i... Add solution -
Javascript 2021-09-26 17:48:05
nodejs cronjob
/** @description CRONJOB RATE LIMIT REQUEST API MIDDLEWARE */ const cron = require('node-schedule') const axios = require('axios') /** @description store ip address user to array */ const IpAddress = [] /** @description fetch data from provider isp ... Add solution -
Java 2021-09-23 23:25:03
Polymorphisim
Polymorphism means objects behave in different forms. ■ It occurs when parent class/interface calls to child class' objects Sub class can never be the reference type of Super Class Object ■ The reference of an object decides what is accessible. ■ Abstr... Add solution -
Python 2021-09-21 22:13:05
python convert list of lists to array
# Basic syntax: numpy.array(list_of_lists) # Example usage: import numpy as np list_of_lists = [[1, 2, 3], [4, 5, 6]] # Create list of lists your_array = np.array(list_of_lists) # Convert list of lists to array your_array --> array([[1, 2, 3], ... Add solution