What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-19 03:38:02
reduce javascript
const sum = array.reduce((accumulator, element) => { return accumulator + element; }, 0); // An example that will loop through an array adding // each element to an accumulator and returning it // The 0 at the end initializes accumulator to start at ... Add solution -
Java 2021-09-19 02:37:03
android arraylist
import java.util.ArrayList; //Integer ArrayList ArrayList<Integer> aList = new ArrayList<Integer>(); aList.add(5); aList.add(11); aList.add(17); System.out.println("Integer Number Added in ArrayList= " + aList);... Add solution -
Java 2021-09-18 14:51:02
Multiplication table in java using array
// Multiplication table in java using array public class MultiplicationTableUsingArray { public static void main(String[] args) { int[][] arrMultipleTable = new int[10][10]; int row = 1, column = 1; for(int a = 0; a < arrMultipl... Add solution -
PHP 2021-09-18 08:44:03
remove gutenberg cpt
add_filter( 'use_block_editor_for_post_type', 'prefix_disable_gutenberg', 10, 2 ); function prefix_disable_gutenberg( $current_status, $post_type ) { // Use your post type key instead of 'page or post' if ( in_array( $post_type, array( 'page', 'post... Add solution -
C 2021-09-18 00:40:03
huffman coding using heap in c
// Huffman Coding in C #include <stdio.h> #include <stdlib.h> #define MAX_TREE_HT 50 struct MinHNode { char item; unsigned freq; struct MinHNode *left, *right; }; struct MinHeap { unsigned size; unsigned capacity; struct MinHNo... Add solution -
Best helpers
Ranking is empty