What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-01-27 01:16:08
swap nodes algo hackerrank solution
import java.io.*; import java.math.*; import java.text.*; import java.util.*; import java.util.regex.*; public class Solution { /* * Complete the swapNodes function below. */ static class Node { int index; int depth; ... Add solution -
Other 2021-11-07 09:05:21
ip subnet calculator code
import java.util.*; import java.util.regex.Pattern; import java.math.*; import java.text.NumberFormat; import java.text.ParseException; import java.net.*; public class example { public static void main(String[] args) { Scanner Scan = new Sc... Add solution -
Java 2021-10-09 17:10:08
minimum swaps to sort an array
import java.io.*; import java.math.*; import java.util.*; public class Swap { static int minimumSwaps(int[] arr) { int swap=0; boolean visited[]=new boolean[arr.length]; for(int i=0;i<arr.length;i++){ int j=i,cycle=0; while(!visited[j])... Add solution
Best helpers
Mastersulm
+5
Diane
+5
Artmal
+5
Richard D
+5
Any Mouse
+5
RiCo
+5
Adam Clowes
+5
Tushar Diwan
+5
Saforrest
+5
Sinow
+5
Naman
+5
Zelite
+5
I-love-php
+5
Pinakin
+5