Bloomberg LP Interview Question
Financial Software DevelopersData Structures I remember
- Primitive DS
- Array
- Stack
- Queue
- Heap
- Binary Tree
- Multiway tree
- Hash Table
- Map
- Multiset
- Bitmap
- Suffix tree
- Adjacency List
- Adjacency matrix
- Skip list
- Deque
@loop in linked list
- Ishwar4frendz August 24, 2008------------------
take 2 pointers p,q
p=q=head;
do
p=p->next->next;
q=q->next;
while p!=q or p!=null
if p==q
loop exists
else
no loop
the faster pointer p meets q if there is a loop