What do you want to save?
Add Code snippet
New code examples
-
Java 2021-10-24 10:09:06
Find out duplicate number between 1 to n numbers in java
public class Main{ public static void main(String[] args){ int [] arr = new int [] {10,34,56,67,10,56,3}; System.out.println("Duplicate elements are "); for(int i = 0; i < arr.length; i++) { for(int j = i + 1; j < arr.length; j++) { if(arr... Add solution -
SQL 2021-10-23 21:25:07
get a row where have list of array in SQL
CREATE TABLE my_table ( id serial PRIMARY KEY, numbers INT [] ); INSERT INTO my_table (numbers) VALUES ('{2, 3, 4}'); INSERT INTO my_table (numbers) VALUES ('{2, 1, 4}'); -- which means -- test=# select * from my_table; id | numbers ----+-----... Add solution
Best helpers
Ranking is empty