Find duplicate rows present in a given binary matrix by traversing the matrix only once.
Given a huge set of strings with duplicate strings present, find first k-maximum occurring words in it.
Given a huge set of strings with duplicate strings present, find the maximum occurring word in it. If two words have same count, return any one of them.
Lexicographic sorting: Given a set of strings, print them in Lexicographic order (dictionary/alphabetical order).
Find Longest Common Prefix (LCP) in given set of strings.
In this post, we will cover memory efficient Trie implementation in C++ using map data structure.
Implement insert, search and delete operations on Trie Data structure. Assume that input consist of lowercase letters a-z.
Given an undirected graph, check if is is a tree or not. In other words, check if given undirected graph is a Acyclic Connected Graph or not.