Programming Code 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.

Google, Goldman Sachs, eBay, ABC, Microsoft, HUP,

20 22348

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

Microsoft, Mentor Graphics,

2 14831

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

Fusion Systems GmbH,

6 9935

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

Microsoft,

8 10590

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.

Wipro,

2 4720

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)

Microsoft,

7 18427

program to Reverse a linked list

Microsoft, Aricent, Ness Technologies,

12 44178

write a program to Insert in a sorted list

Microsoft,

4 8135

Program to Delete an element from a doubly linked list.

Infosys, College School Exams Tests,

4 23197

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

Amazon, Adobe, EFI, Imagination Technologies,

13 70113

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

Microsoft,

3 11359

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

TCS, Intel, Microsoft,

12 19261

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)

Disney, Google, ZS Associates,

3 7663

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

2 11597

How to swap two variables, without using third variable ?

Manhattan, TCS, BirlaSoft, ADP, IBM, Hewitt, Infosys, Cisco, Wipro, HP, Satyam, Microsoft, Honeywell, HCL, Yamaha, Cygnet Infotech, Mobius, Percept, SofTMware,

104 160329



Un-Answered Questions { Programming Code }

How to find the list of users who have two codes su01 and pfcg? thank in advance all.

879


Write a routine to implement the polymarker function

2930


What is full form of PEPSI

153


can any body give me answer to this question please? please give me code in cl with the folling specifications. 1.Accept 2 parameters-date and date type 2.If date type is J then convert date to *MDY format 3.If date type is M convert date to *JUL format 4. Send a program message with the value of converted date? Please give me the answer.Because im practicing in my house.Im taking trining on AS/400.

1067


How to update and insert from datagridview at run time in excel database?

1831


How to Get File Extension?

299


What is the functionality of GetWindowText?

291


write a program that prompt the user to enter his height and weight,then calculate the body mass index and show the algorithm used

3164


Write a program to convert postfix expression to infix expression.

3003


I have a file which contains so many lines and variable number of lines are treated as a record. For example *first ooooo xxxxx ttttt mmmm vvvvvvv *end uuu bbbb *first kkkkvvvvvv nnnn mmmmm kkkkk fffff gggg ffff kkkk lllll *end. Here the lines from *first to *end are treated as a record. The number of lines between *first and *end is not same for all the records. Suppose there are 100 records (or number of records are not predefined)like the format given in the above example. Now the entire file needs to split into two files, first having 40 and remaining in the second file. Can we split using sort utility? If possible then what is the sort card?

943


Teta-Omeg-Big-Oh Show that f(n) = n2 + 3n3 is ;(n3).

2163


can any one give me code to keyed a flat file and used chain in RPGLE to search any item

779


We need to write the function to check the password entered is correct or not based on the following conditions.. a) It must have atleast one lower case character and one digit. b)It must not have any Upper case characters and any special characters c) length should be b/w 5-12. d) It should not have any same immediate patterns like abcanan1 : not acceptable coz of an an pattern abc11se: not acceptable, coz of pattern 11 123sd123 : acceptable, as not immediate pattern adfasdsdf : not acceptable, as no digits Aasdfasd12: not acceptable, as have uppercase character

2941


How to run the Result Intemation System project in java for collage student in which result of internal exam marks send on parents mobile using SMS? what software required to run this project? please reply immediately...

1427


how to test pierrot divisor

1082