Explanation for the article: www.geeksforgeeks.org/print-un... This video is contributed by Harshit Jain.
Пікірлер: 11
@NavinPrasad064 жыл бұрын
Make each row into a String equivalent [1, 0 , 1, 0, 1, 0] ==> "101010". Save all these strings into a Set. Print Set elements.
@kdroadie3 жыл бұрын
Take an empty map, make all the rows as a string of 0 and 1 and print this sting if it is not present in map and insert it into map, otherwise skip this row.
@rahulkhandelwal87817 жыл бұрын
Use hashing, convert each row to its decimal equivalent and check if it already exists in the hash table, if no print it. O(row*column) auxillary space O(row)
@GeeksforGeeksVideos7 жыл бұрын
Thank you for your suggestion, Rahul. :) I've shared it with our team.
@subhadeepdey25037 жыл бұрын
If the matrix size is 400 * 400 then what happen?
@subhadeepdey25037 жыл бұрын
For 64 bit system it support maximum 64 *64 matrix. For large size of matrix does not work
@sridevi-gq3uj5 жыл бұрын
could anyone provide the c code for simple approach in the above video?
@manveersingh58227 жыл бұрын
Amazing !!
@GeeksforGeeksVideos7 жыл бұрын
Thanks!
@KnowledgeAmplifier15 жыл бұрын
Simple java code Using Set: import java.util.*; class Uni { public static void main(String args[]) { Scanner obj=new Scanner(System.in); System.out.println("Enter the no.of rows:"); int m=obj.nextInt(); System.out.println("Enter the no.of columns:"); int n=obj.nextInt(); int a[][]=new int[m][n]; for(int i=0;i