How to reverse a string using a recursive function, without swapping or using an extra memory?
31 103629Coin Problem You are given 9 gold coins that look identical. One is counterfeit and weighs a bit greater than the others, but the difference is very small that only a balance scale can tell it from the real one. You have a balance scale that costs 25 USD per weighing. Give an algorithm that finds the counterfeit coin with as little weighting as possible. Of primary importance is that your algorithm is correct; of secondary importance is that your algorithm truly uses the minimum number of weightings possible. HINT: THE BEST ALGORITHM USES ONLY 2 WEIGHINGS!!!
1 15772If we have an array of Interger values, find out a sub array which has a maximum value of the array and start and end positions of the array..The sub array must be contiguious. Take the start add to be 4000. For Ex if we have an array arr[] = {-1,-2,-5,9,4,3,-6,8,7,6,5,-3} here the sub array of max would be {8,7,6,5} coz the sum of max contiguous array is 8+7+6+5 = 26.The start and end position is 4014(8) and 4020(5).
5 11324Post New Motorola Interview Questions
Will an earth leakage trip be activated if the component or wiring is faulty on low voltage equipment.Example An electrical Cat Scarer placed in the garden and water gets into the wiring.
What is datatable in c#?
What do you mean by dental bridges?
What is Comp-2?
What is difference between for and foreach in c#?
Differences between a portlet and servlet?
How do you troubleshoot server hang?
In Rankine Cycle we use the concept of Tm(mean temperature of heat addition).In actual cycle the efficiency comes as n=1-T2/T1 Taking Tm into consideration it comes as n=1-T2/Tm as T1>Tm so the efficiency for both case will not same for a same cycle. Can anybody explain how it is possible? Advance appreciation for your effort.Thanks
Why is change management necessary for erp?
Steering handle (round dial) of motor vehicles (CAR,BUS,LORRY) wiil be designing with two cross supports without 180 degree straightness( it will be little bit cross). Why?
How compile c++ program in cmd?
What is apache timeout?
Who invented node?
What do you see are the principal risks to the business? - Venture Capitalists
What is the basic structure of an html document?