vhajela
BAN USER
Comments (4)
Reputation 0
Page:
1
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
0
of 0 vote
If the questions says u can use an additional space , then the simplest ans is to store the contents of list in an array. Sort the array ( swap (a[0],a[n-1]), swap(a[1],a[n-2)...and so on). Once the array is sorted , put the value back in list. its O(n) solution.
- vhajela February 03, 2012Page:
1
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.
You are wrong Mr V. Who said mutexes cant be used across processes ?.I think you need to go thru std OS books again.
- vhajela June 23, 2013