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 36597Write a routine to draw a circle (x ** 2 + y ** 2 = r ** 2) without making use of any floating point computations at all.
2 19433Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal.
6 15077Given 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 7904Give 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 24973Write, 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).
12 28360Given 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 11320How 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 192649
Discuss an algorithm to traverse a tree, depth first.
What is the functionality of EnumWindows?
Coding for .NET Delegates?
an on-line examination application using html jsp servlet and jdbc. including session management and cookies
How do you verify if the two sentences/phrases input is an anagram using predefined functions in string.h and by using arrays?
Write a Program to find the reverse of a given number.
how to use the GetTickCount() properly and what is that procedure for?
How to print sum of the numbers starting from 1 to 100?
Write a Program in 'C' To Insert a Unique Number Only. (Hint: Just Like a Primary Key Numbers In Database.) Please Some One Suggest Me a Better Solution for This question ??
Given a circular list of integers (when you reach the end of the list you come back to the beginning), what is the most efficient algorithm to find the smallest integer in the list? For example: circular_list = [22, 52, 66, 82, 5, 8, 12, 19].
How to palindrom string in c language?
create a C-code that will display the total fare of a passenger of a taxi if the driver press enter,the timer will stop. Every 10 counts is 2 pesos. Initial value is 25.00
What is GUID anyway?
Given a spherical surface, write bump-mapping procedure to generate the bumpy surface of an orange
Write a python program to swap the first and last value of a list?