Search found 2 matches

by wasi
Mon Dec 29, 2008 11:59 am
Forum: Volume 115 (11500-11599)
Topic: 11542 - Square
Replies: 16
Views: 5607

Re: 11542 - Square

1<<x is basically left-shifting a 32-bit to x places. 1LL<<x should work.
by wasi
Mon Jul 30, 2007 12:23 am
Forum: Volume 5 (500-599)
Topic: 540 - Team Queue
Replies: 37
Views: 16484

An input which is not giving the correct output is: 2 2 1 2 2 3 4 ENQUEUE 1 ENQUEUE 2 ENQUEUE 3 ENQUEUE 4 DEQUEUE DEQUEUE ENQUEUE 1 ENQUEUE 2 DEQUEUE DEQUEUE STOP 0 Your output: 1 2 1 2 My output: Scenario #1 1 2 3 4 The reason is after enqueuing 1 2 3 4 , we deque twice and got 1 2 then we enqueue ...

Go to advanced search