Longest substring with equal number of 0s and 1s

1236

16.59 
Hash  Strings 
lock

Flipkart 
Sum of f(a[i], a[j]) over all pairs in an array of n integers

487

69.82 
Arrays  Hash  Map 
lock


Convert a sentence into its equivalent mobile numeric keypad sequence

922

27.22 
Hash  Strings 
lock


Find the most frequent digit

1225

31.43 
Hash  Mathematical  Strings 
lock


Count pairs Sum in matrices

940

22.66 
Hash  Matrix  Sorting 
lock


Longest SubArray with Sum K

1990

18.14 
Arrays  Hash  Map 
lock


Numbers with prime frequencies greater than or equal to k

525

24.19 
Arrays  Hash 
lock


Most frequent word in an array of strings

2056

40.81 
Arrays  Hash  Sorting 
lock

Adobe 
Winner of an election where votes are represented as candidate names

1103

47.05 
Hash  Strings 
lock

Adobe 
Check if a string is Isogram or not

1084

40.96 
Hash  Strings 
lock


Tiger Zinda Hai

687

24.89 
Arrays  Hash 
lock


The Fibonacciprime number

518

11.97 
Fibonacci  Hash  Prime Number  Strings 
lock


Check if array contains contiguous integers with duplicates allowed

7609

36.79 
Arrays  Hash  Sorting 
lock

Amazon 
Rearrange an array such that arr[i] = i

1148

50.09 
Arrays  Hash 
lock


NonRepeating Element

2101

49.74 
Arrays  Hash  STL 
lock

Snapdeal 
Print K smallest elements in their original order

1507

9.95 
Arrays  Hash 
lock


Maximum distinct elements after removing K elements

914

38.51 
Arrays  Hash  Heap 
lock


Count subarrays with equal number of 1’s and 0’s

666

25.38 
Arrays  Hash 
lock


Smallest subarray with all occurrences of a most frequent element

276

29.71 
Arrays  Hash 
lock


Longest subarray with sum divisible by K

855

21.52 
Arrays  Hash 
lock


Distinct Elements in a Stream

654

22.63 
Arrays  Hash  Heap 
lock


Joey doesn't share food

84

15.48 
DFS  Hash 
lock


Morning Assembly

139

19.42 
Hash 
lock


Completing tasks

606

30.03 
Arrays  Hash 
lock


GeeksforGeeks New System

603

36.32 
Hash  Map 
lock


Count number of elements between two given elements in array

1796

30.46 
Arrays  Hash 
lock


Count of substrings containing K ones

316

18.67 
Hash  Strings 
lock


Frequency of each element in an unsorted array

1157

22.73 
Arrays  Hash 
lock


Maximum number of characters between any two same character

513

23.78 
Hash  Strings 
lock


Sort the string in descending order

1348

22.26 
Hash  Strings 
lock


Sum Indexes

497

27.36 
Hash 
lock


Incomplete Array

530

23.4 
Hash 
lock


Ana and Sweets

286

43.71 
Hash 
lock


Numbers containing 1, 2 and 3

10341

14.22 
Arrays  Hash  Mathematical 
lock

Goldman Sachs 
Find unique element

1126

43.16 
Arrays  Hash 
lock


Difference between highest and lowest occurrence

1443

18.78 
Arrays  Hash 
lock


Sort String

1205

44.56 
Hash  Sorting  Strings 
lock


Count the characters

3242

23.57 
Hash  Strings 
lock

Zoho 
Pairs of Non Coinciding Points

267

25.84 
Hash  Mathematical 
lock


String Subsequence Game

633

17.69 
Hash  Strings 
lock

Yatra.com 
Smallest number repeating K times

2417

28.3 
Arrays  Hash 
lock


Anagram Palindrome

1670

40.66 
Hash  palindrome  Strings 
lock


Maximum possible sum

299

33.78 
Arrays  Hash 
lock


Minimum Distinct Ids

2069

25.37 
Hash  Sorting 
lock

Morgan Stanley 
Mail System Design

1772

19.02 
Hash  Linked List 
lock


In First But Second

2449

39.98 
Arrays  Hash 
lock

Accolite 
Minimum indexed character

2539

53.37 
Hash  STL  Strings 
lock

Ola Cabs 
Find distinct elements

808

19.18 
Hash  Sorting 
lock


Sum of length

395

29.37 
Arrays  Hash 
lock


Sort by Absolute Difference

3349

32.61 
Arrays  Hash 
lock


Swapping pairs make sum equal

2411

37.04 
Arrays  Hash 
lock


Check Arithmetic Progression

736

36.01 
Arrays  Hash 
lock


Count pair sum

1108

45.85 
Arrays  Hash  Sorting  STL 
lock


Find pairs with given relation

414

24.15 
Arrays  Hash 
lock


Kth distinct element

503

32.6 
Hash 
lock


First Come First Serve

498

55.62 
Arrays  Hash 
lock


Equivalent SubArrays

233

51.93 
Arrays  Hash 
lock


Count the elements

5631

40.58 
Arrays  Hash 
lock

Amazon  Yatra.com 
Sum equals to Sum

4530

44.13 
Arrays  Hash 
lock

Amazon 
Group Anagrams Together

3447

46.27 
Hash  Strings 
lock

Amazon  Snapdeal 
Uncommon characters

5194

38.83 
Hash  Strings 
lock

Amazon 
Array Subset of another array

6665

38.02 
Arrays  Binary Search  Hash  Searching 
lock

GE  Qualcomm 
First element to occur k times

2589

25.53 
Arrays  Hash 
lock


Largest Fibonacci Subsequence

1730

54.62 
Arrays  Fibonacci  Hash 
lock

Facebook 
Smallest distinct window

5165

30.82 
Arrays  Hash  Strings 
lock

Amazon  Dailyhunt 
Smallest window in a string containing all the characters of another string

5071

26.23 
Hash  Strings 
lock

Amazon  MakeMyTrip  Streamoid Technologies 
Zero Sum Subarrays

3603

39.63 
Arrays  Hash 
lock

Microsoft 
Rahul and his Villa

333

13.81 
Arrays  Hash 
lock


Fake Profile

1347

29.32 
Hash  Strings 
lock


Total distance travelled in an array

848

57.31 
Arrays  Hash 
lock


Find first repeated character

3550

31.07 
Hash  Strings 
lock


Check if frequencies can be equal

3863

14.13 
Hash  Strings 
lock


Find all pairs with a given sum

16878

18.47 
Arrays  Hash 
lock

Amazon  Facebook 
Recaman’s sequence

711

41.91 
Hash  Mathematical  Recursion 
lock


First nonrepeating character in a stream

15740

27.91 
Hash  Linked List  Queue 
lock

Amazon  Flipkart  Microsoft  Payu  Yahoo 
Love For The Twins

835

48.98 
Hash  Mathematical 
lock


Unique Numbers

2195

42.23 
Hash 
lock

Amazon 
Sherlock a Detective

510

42.75 
Arrays  Hash 
lock


Check if two arrays are equal or not

9048

43.6 
Arrays  Hash  Sorting 
lock

Goldman Sachs 
Ladoo problem

571

37.13 
Hash 
lock


Longest K unique characters substring

2930

29.52 
Hash  Map  Strings 
lock

Google 
Find all four sum numbers

10719

10.85 
Arrays  Hash  Sorting 
lock

Amazon  Google  Microsoft 
Tom and String

389

28.79 
Hash  Strings 
lock


Demonitisation

618

19.9 
Hash  Strings 
lock


Pairs with given XOR

1517

29.33 
Bit Magic  Hash 
lock


Equal 0, 1 and 2

562

42.53 
Hash  Strings 
lock


Satisfy the equation

788

17.51 
Hash 
lock


Find the Odd Occurence

12955

47.17 
Arrays  Bit Magic  Hash 
lock

Amazon  Snapdeal 
Longest consecutive subsequence

5928

45.14 
Hash 
lock

Amazon  Walmart 
Lucky Number

907

23.93 
Hash  Mathematical 
lock

Epic Systems 
A Simple Fraction

5800

16.72 
Hash  Mathematical 
lock

Amazon  Microsoft 
Count distinct pairs with difference k

2431

41.26 
Hash  Map 
lock

Facebook 