Given an array of size N in which every number is between 1 and N, determine if there are any duplicates in it. You are allowed to destroy the array if you like.
21 64572Write a routine to draw a circle (x ** 2 + y ** 2 = r ** 2) without making use of any floating point computations at all.
2 35194Give a very good method to count the number of ones in a 32 bit number. (caution: looping through testing each bit is not a solution)
7 43365Write, efficient code for extracting unique elements from a sorted list of array. e.g. (1, 1, 3, 3, 3, 5, 5, 5, 9, 9, 9, 9) -> (1, 3, 5, 9).
13 39724Write out a function that prints out all the permutations of a string. For example, abc would give you abc, acb, bac, bca, cab, cba. You can assume that all the characters will be unique.
5 22747Write a prog to accept a given string in any order and flash error if any of the character is different. For example : If abc is the input then abc, bca, cba, cab bac are acceptable, but aac or bcd are unacceptable.
5 15222Given an array of characters which form a sentence of words, give an efficient algorithm to reverse the order of the words (not characters) in it.
9 22295Post New Microsoft C Code Interview Questions
What is maven in spring framework?
Can instead of triggers be used to fire once for each statement on a view?
What is upgrade process? And how u will do that?
What are the facilities for evacuation/sheltering in nuclear submarrine when any nuclear accident takes place in submarrine?
What does robotic automation mean in the context of back office administrative process automation?
What's google's artificial intelligence called?
What are the benefits and tasks of object explorer? : sql server management studio
which type of cabel
What is Tableau knowledge Engine?
What is the use of Auxiliary Constructors in Scala?Please explain the rules to follow in defining Auxiliary Constructors in Scala?
Difference between '=', '==' and '===' operators?
Explain the mechanism by which you can distinguish between transient (i.e. Newly instantiated) and detached objects in hibernate?
why transmission is only 3 phase and not 2 or 4 or poly phases
What is the purpose of the jdbc resultset interface?
What does an spwebapplication object represent?