What do you want to save?
Add Code snippet
New code examples
-
C++ 2021-09-08 21:32:02
queue reconstruction by height
#include <bits/stdc++.h> using namespace std; void print_vector(vector<vector<auto> > v){ cout << "["; for(int i = 0; i<v.size(); i++){ cout << "["; ... Add solution -
Javascript 2021-09-08 02:03:02
javascript ascending and descending
// Sort an array of numbers let numbers = [5, 13, 1, 44, 32, 15, 500] // Lowest to highest let lowestToHighest = numbers.sort((a, b) => a - b); //Output: [1,5,13,15,32,44,500] //Highest to lowest let highestToLowest = numbers.sort((a, b) => b-a);... Add solution -
Java 2021-09-06 04:36:02
Java program to sort names in an alphabetical order
// java sort string characters alphabetically import java.util.Arrays; public class CharactersAlphabetically { public static void main(String[] args) { String strInput = "flowerbrackets"; // converting string to char array ... Add solution
Best helpers
Ranking is empty