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 65244Write a routine to draw a circle (x ** 2 + y ** 2 = r ** 2) without making use of any floating point computations at all.
2 35311Give 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 43628Write, 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 40116Write 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 22904Write 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 15415Given 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 22573Post New Microsoft C Code Interview Questions
What is the difference between apache tomcat and tomcat?
What is numeric function?
Should you disable javascript?
What is the difference between cdu c and cdu a?
What is a custom field in wordpress?
When sql appeared?
How do I make a table?
Explain how you can reduce the resource requirement in jmeter?
The system shown in the figure is in equilibrium. The metal spheres are identical and each has a mass of 2 kg. The surface areas of the pistons are equal and 100 square centimeters each. The density of water is 1 g per cubic centimeter. Assuming that the frictions and masses of the pistons are negligible, what is the mass of G? ( g = 10N/kg )
Name the operators that cannot be overloaded in C++?
What is migration in exchange server 2007?
What does $_env mean?
What is process communication?
How do you copy table from excel to word and keep formatting?
How to get the nth word of a line in Unix?