All such questions are efficiently solved using hashing. Variations of this problem like find a triplet with sum equal to 0. Find a triplet a, b, c such that a 2 = b 2 + c 2.K largest elements from a big file or array.Functional Dependency and Attribute Closure.Microsoft's most asked interview questions.Differences and Applications of List, Tuple, Set and Dictionary in Python.Sort a nearly sorted (or K sorted) array.k largest(or smallest) elements in an array. ![]()
0 Comments
Leave a Reply. |