Longest substring with equal number of 0s and 1s

2326

19.79 
Hash  Strings 
lock

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

952

66.41 
Arrays  Hash  Map 
lock


Convert a sentence into its equivalent mobile numeric keypad sequence

1253

26.08 
Hash  Strings 
lock


Find the most frequent digit

1619

31.45 
Hash  Mathematical  Strings 
lock


Count pairs Sum in matrices

1253

22.67 
Hash  Matrix  Sorting 
lock

FactSet 
Longest SubArray with Sum K

2809

21.91 
Arrays  Hash  Map 
lock


Numbers with prime frequencies greater than or equal to k

726

24.99 
Arrays  Hash 
lock


Most frequent word in an array of strings

3829

44.94 
Arrays  Hash  Sorting 
lock

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

2840

41.05 
Hash  Strings 
lock

Adobe 
Check if a string is Isogram or not

2117

45.66 
Hash  Strings 
lock


Tiger Zinda Hai

858

23.11 
Arrays  Hash 
lock


The Fibonacciprime number

737

13.09 
Fibonacci  Hash  Prime Number  Strings 
lock


Check if array contains contiguous integers with duplicates allowed

9569

41.67 
Arrays  Hash  Sorting 
lock

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

1424

48.76 
Arrays  Hash 
lock


NonRepeating Element

2965

50.3 
Arrays  Hash  STL 
lock

Snapdeal 
Print K smallest elements in their original order

1772

10.2 
Arrays  Hash 
lock


Maximum distinct elements after removing K elements

1306

39.19 
Arrays  Hash  Heap 
lock


Count subarrays with equal number of 1â€™s and 0â€™s

1233

29.68 
Arrays  Hash 
lock


Smallest subarray with all occurrences of a most frequent element

429

27.49 
Arrays  Hash 
lock


Longest subarray with sum divisible by K

1448

20.37 
Arrays  Hash 
lock


Distinct Elements in a Stream

821

24.39 
Arrays  Hash  Heap 
lock


Joey doesn't share food

140

18.58 
DFS  Hash 
lock


Morning Assembly

141

19.15 
Hash 
lock


Completing tasks

638

29.73 
Arrays  Hash 
lock


GeeksforGeeks New System

745

37.01 
Hash  Map 
lock


Count number of elements between two given elements in array

1949

32.11 
Arrays  Hash 
lock


Count of substrings containing K ones

365

20.24 
Hash  Strings 
lock


Cumulative frequency of count of each element in an unsorted array

1437

21.27 
Arrays  Hash 
lock


Maximum number of characters between any two same character

661

23.84 
Hash  Strings 
lock


Sort the string in descending order

1427

23.7 
Hash  Strings 
lock


Sum Indexes

515

27.78 
Hash 
lock


Incomplete Array

646

24.11 
Hash 
lock


Ana and Sweets

314

44.6 
Hash 
lock


Numbers containing 1, 2 and 3

16299

20.09 
Arrays  Hash  Mathematical 
lock

Goldman Sachs 
Find unique element

1330

44.61 
Arrays  Hash 
lock


Difference between highest and lowest occurrence

1710

20.3 
Arrays  Hash 
lock


Sort String

1322

47.36 
Hash  Sorting  Strings 
lock


Repeated Character

5817

46.34 
Hash  Strings 
lock

Goldman Sachs 
Count the characters

3774

24.2 
Hash  Strings 
lock

Zoho 
Pairs of Non Coinciding Points

334

26.03 
Hash  Mathematical 
lock


String Subsequence Game

754

18.93 
Hash  Strings 
lock

Yatra.com 
Smallest number repeating K times

2537

29.06 
Arrays  Hash 
lock


Anagram Palindrome

1932

41.24 
Hash  palindrome  Strings 
lock


Maximum possible sum

351

31.93 
Arrays  Hash 
lock


Minimum Distinct Ids

3395

26.79 
Hash  Sorting 
lock

Morgan Stanley 
Mail System Design

2344

19.37 
Hash  Linked List 
lock


In First But Second

2989

41.22 
Arrays  Hash 
lock

Accolite 
Minimum indexed character

3717

55.14 
Hash  STL  Strings 
lock

Ola Cabs 
Find distinct elements

970

19.07 
Hash  Sorting 
lock


Sum of length

489

34.16 
Arrays  Hash 
lock


Sort by Absolute Difference

4066

31.32 
Arrays  Hash 
lock


Swapping pairs make sum equal

3983

38.45 
Arrays  Hash 
lock


Check Arithmetic Progression

845

35.96 
Arrays  Hash 
lock


Count pair sum

1214

47.11 
Arrays  Hash  Sorting  STL 
lock


Find pairs with given relation

456

25.21 
Arrays  Hash 
lock


Kth distinct element

550

34.01 
Hash 
lock


First Come First Serve

650

53.66 
Arrays  Hash 
lock


Equivalent SubArrays

271

50.55 
Arrays  Hash 
lock


Count the elements

6285

40.98 
Arrays  Hash 
lock

Amazon  Yatra.com 
Sum equals to Sum

4931

45.49 
Arrays  Hash 
lock

Amazon 
Group Anagrams Together

4315

46.8 
Hash  Strings 
lock

Amazon  Snapdeal 
Uncommon characters

5983

40.63 
Hash  Strings 
lock

Amazon 
Array Subset of another array

9786

41.56 
Arrays  Binary Search  Hash  Searching 
lock

GE  Qualcomm 
First element to occur k times

3691

28.3 
Arrays  Hash 
lock


Largest Fibonacci Subsequence

1994

56.25 
Arrays  Fibonacci  Hash 
lock

Facebook 
Smallest distinct window

6471

32.26 
Arrays  Hash  Strings 
lock

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

6532

28.32 
Hash  Strings 
lock

Amazon  MakeMyTrip  Streamoid Technologies 
Zero Sum Subarrays

4957

42.59 
Arrays  Hash 
lock

Microsoft 
Rahul and his Villa

342

13.74 
Arrays  Hash 
lock


Fake Profile

1373

29.65 
Hash  Strings 
lock


Find first repeated character

4586

32.82 
Hash  Strings 
lock


Check if frequencies can be equal

5200

15.75 
Hash  Strings 
lock


Find all pairs with a given sum

20509

20.74 
Arrays  Hash 
lock

Amazon  Facebook  United Health Group 
Recamanâ€™s sequence

775

42.92 
Hash  Mathematical  Recursion 
lock


Substrings with similar first and last characters

1718

46.4 
Hash  Mathematical  Strings 
lock


First nonrepeating character in a stream

20033

32.04 
Hash  Linked List  Queue 
lock

Amazon  Flipkart  Microsoft  Payu  Yahoo 
Love For The Twins

859

49.95 
Hash  Mathematical 
lock


Unique Numbers

2525

45.12 
Hash 
lock

Amazon 
Sherlock a Detective

534

43.67 
Arrays  Hash 
lock


Check if two arrays are equal or not

12007

45.61 
Arrays  Hash  Sorting 
lock

Goldman Sachs 
Ladoo problem

597

37.86 
Hash 
lock


Longest K unique characters substring

3597

30.14 
Hash  Map  Strings 
lock

Google 
Find all four sum numbers

13363

12.87 
Arrays  Hash  Sorting 
lock

Amazon  Google  Microsoft 
Tom and String

403

28.04 
Hash  Strings 
lock


Demonitisation

631

20.13 
Hash  Strings 
lock


Pairs with given XOR

1565

29.73 
Bit Magic  Hash 
lock


Equal 0, 1 and 2

613

44.02 
Hash  Strings 
lock


Satisfy the equation

831

18.18 
Hash 
lock


Find the Odd Occurence

14046

47.8 
Arrays  Bit Magic  Hash 
lock

Amazon  Snapdeal 
Longest consecutive subsequence

8196

43.72 
Hash 
lock

Amazon  Walmart 
Lucky Number

1528

26.18 
Hash  Mathematical 
lock

Epic Systems 
A Simple Fraction

6748

18.07 
Hash  Mathematical 
lock

Amazon  Microsoft 
Count distinct pairs with difference k

3267

39.79 
Hash  Map 
lock

Facebook 