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 45528Write a routine to draw a circle (x ** 2 + y ** 2 = r ** 2) without making use of any floating point computations at all.
2 21340Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal.
6 19083Given 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.
2 9916Give 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 28090Write, 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 34985Given a list of numbers ( fixed list) Now given any other list, how can you efficiently find out if there is any element in the second list that is an element of the first list (fixed list)
3 13198How to swap two variables, without using third variable ?
AB, ADP, BirlaSoft, Cisco, Cygnet Infotech, HCL, Hewitt, Honeywell, HP, IBM, Infosys, Manhattan, Microsoft, Mobius, Percept, Satyam, SofTMware, TCS, Wipro, Yamaha,
104 222245
why do you use macros? Explain a situation where you had to incorporate macros in your proc report? use a simple instream data example with code ?
how to create an anonymous function
write a program that prompt the user to enter his height and weight,then calculate the body mass index and show the algorithm used
Write a python program to check common letters in two input strings?
Teta-Omeg-Big-Oh Show that f(n) = n2 + 3n3 is ;(n3).
plz tell me the exam date for clerks in sbi
ArrayList declaration in .net
Write a Program to find the sum of digits of a given number until the sum becomes a single digit.
sample code to auto focusing the first field in a form
Code for Document Validation in XML.NET?
Write a function that takes an unsorted integer array, and returns a three element subset whose sum is zero.
How to Bind Nested XML to a Repeater Control with Container.DataItem?
how exactly is the lngColour used?
Write a python program to check if a string is a palindrome or not?
What is XML DOM Document?