Skip to content
Prakash Natarajan edited this page Sep 24, 2015 · 19 revisions

Sorting

  • Given an array which consists of only 0, 1 and 2 while there are repetitions for all of them. Sort them in O(n). MIT - see counting sort

Linked List

HashMaps

Strings

  • Write 
a 
program
 to
 determine 
whether
 an 
input 
string 
x 
is 
a
 substring
 of 
another
 input
 string 
y.

(For
 example,
"bat"
 is 
a 
substring
 of
 "abate",
but 
not
 of
 "beat".)


JavaScript

Clone this wiki locally