Code Snippets Interview Questions
Questions Answers Views Company eMail

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.

27321

Write a routine to draw a circle (x ** 2 + y ** 2 = r ** 2) without making use of any floating point computations at all.

16812

Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal.

11737

Give a one-line C expression to test whether a number is a power of 2.

13099

Given 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.

6050

Give 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)

20863

program to Reverse a linked list

46770

write a program to Insert in a sorted list

9498

Program to Delete an element from a doubly linked list.

26443

Write a function to find the depth of a binary tree.

74079

Write a routine that prints out a 2-D array in spiral order

12793

Write, 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).

22973

Given 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)

9121

Print an integer using only putchar. Try doing it without using extra storage.

13122

How to swap two variables, without using third variable ?

171624

Un-Answered Questions { Code Snippets }

write a simple calculator c program to perform addition, subtraction, mul and div.

2160

write a program that creates a sequenced array of numbers starting with 1 and alternately add 1 and then 2 to create the text number in the series , as shown below. 1,33,4,6,7,9,............147,148,150 Then , using a binary search , searches the array 100 times using randomly generated targets in the range of 1 to 150

2313

Code for Easily Using Hash Table?

1398

how to track links visited in google using iframes

1330

write a program to convert temperature from fa height into celcius and vise versa,use modular programming

1474

Given a spherical surface, write bump-mapping procedure to generate the bumpy surface of an orange

1742

how to remove or delete multiple selected items from listbox in on button click in asp?

415

946

i don't know about working of nested for loop can any one help me

964

write a program in java to solve a system of n-variabled simultaneous equations using the guassian elimination method. let the maximum possible value of n be 100. run the program using hypothetical values for a set of 10- variables simultaneous equations. print out the program, the input equation and the results generated by the program.

2779

Performance Algorithm A performs 10n2 basic operations and algorithm B performs 300 lg n basic operations. For what value of n does algorithm B start to show its better performance?

4929

What is the coding about how to recognize color in fuzzy logic using Matlab R2009b?

845

Code for Creating a Form Using PlaceHolder Controls?

1496

how to Scroll a DIV content

1337

write a function to give demostrate the functionality of 3d in 1d. function prototye: change(int value,int indexX,int indexY,int indexZ, int [] 1dArray); value=what is the date; indexX=x-asix indexY=y-axis indexZ=z-axis and 1dArray=in which and where the value is stored??

3031