What do you want to save?
Add Code snippet
New code examples
-
Java 2021-10-30 03:37:08
System arraycopy() method in java
public class ArrayCopyDemo { public static void main(String[] args) { int[] arrOne = {2,4,6,8,10,12,14,16,18,20}; int[] arrTwo = {1,3,5,7,9,11,13,15,17,19}; int[] sourceArr, sourcePosition, destinationArr[], destinationPosition, le... Add solution -
C++ 2021-10-28 02:21:11
heap sort internal implementation using c++
Implementation of heap sort in C: #include <stdio.h> int main() { int heap[10], array_size, i, j, c, root, temporary; printf("\n Enter size of array to be sorted :"); scanf("%d", &array_size); printf("\n Ent... Add solution -
Javascript 2021-09-30 22:03:02
split string to char js
var myString = "split string to char"; var myArray = [...myString]; /* * * myArray : * ["s", "p", "l", "i", "t", " ", "s", "t", "r", "i", &quo... Add solution -
TypeScript 2021-09-17 12:54:02
Write a C program to count total number of duplicate elements in an array.
/** * C program to count total number of duplicate elements in an array */ #include <stdio.h> #define MAX_SIZE 100 // Maximum array size int main() { int arr[MAX_SIZE]; int i, j, size, count = 0; /* Input size of array */ prin... Add solution -
Java 2021-09-14 01:15:01
Java program to print odd and even numbers in an array
import java.util.Scanner; public class EvenOddArray { public static void main(String[] args) { int numbers; Scanner sc = new Scanner(System.in); System.out.print("Please enter elements in array : "); numbe... Add solution -
Python 2021-09-11 04:36:02
python numpy floor
# Python program explaining # floor() function import numpy as np in_array = [.5, 1.5, 2.5, 3.5, 4.5, 10.1] print ("Input array : \n", in_array) flooroff_values = np.floor(in_array) print ("\nRounded values : \n", flooroff_val... Add solution -
PHP 2021-08-27 16:40:02
sum of associative array in php
<?php $items = [ ['label' => 'cake', 'name' => 'Cake', 'price' => 150], ['label' => 'pizza', 'name' => 'Pizza', 'price' => 250], ['label' => 'puff', 'name' => 'Veg Puff', 'price' => 20], ['label' => 'samosa... Add solution
Best helpers
Ranking is empty