Pranay Singhania
BAN USER- 0of 0 votes
AnswersWhat is conditional compilation ? Please explain it with an example.
- Pranay Singhania in India| Report Duplicate | Flag | PURGE
C - 0of 0 votes
AnswersIn 1000 wine bottles stack 10 are poisoned given 10 rats what is the minimum number of tries to find the poisoned one. Rat dies once it licks the poisoned wine.
- Pranay Singhania in India| Report Duplicate | Flag | PURGE
Yahoo Software Engineer / Developer Math & Computation
But what will be the answer if the first function whose argument is string args[] is the third function ??
- Pranay Singhania June 03, 2012@torque Can you explain a little bit how can we do it using maxHeap function??
- Pranay Singhania June 01, 2012Can anybody tell me if all numbers are negative then how can we solve this problem.
- Pranay Singhania May 20, 2012I think you can do this problem by just inserting second tree elements on first tree and then do inorder traveral. Now finally you will get sorted numbers.
- Pranay Singhania May 19, 2012Thanks :) Got it
- Pranay Singhania May 18, 2012Can you tell me why you are picking 37 first why not any other number ???
Please Explain it.
Thanks
I think your code will not work when number of element in the list is 7 and let K be the 6. It will give segmentation Fault.
Correct me if if i am wrong.
Thanks
I didn't get the idea for the numbers between 64-100. Can anyone explain it more clearly.
Thanks in advance :)
I think we can do it using divide and conqueror algorithm ( O(log(n)) ).
- Pranay Singhania June 16, 2012If n is odd then
func(n/2)*func(n/2)*n;
else
func(n/2)*func(n/2);