Programming Code Interview Questions

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.

24306

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

15358

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

10541

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

11357

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.

5078

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)

19233

program to Reverse a linked list

45044

write a program to Insert in a sorted list

8570

Program to Delete an element from a doubly linked list.

24057

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

71458

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

11816

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

20703

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)

8065

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

12128

How to swap two variables, without using third variable ?

165402

Un-Answered Questions { Programming Code }

What is the functionality of GetWindow?

383

Create a program to read two random data set in two files named data1.txt and data2.txt manifold contains integer numbers, whereas data2.txt file contains the float type numbers. Simpanlahmasing each into 2 pieces of data that is an array of type integer array and an array of type float, then calculate the average numbers in the second array.

1066

What is the code of Password Recovery or Forget your password? Plz tell in c # language.

2559

How to use Client-side Script to Focus Controls in ASP.NET?

1360

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

924

Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)

2205

How to create Date method to set the date in Ms Access

866

How do you verify if the two sentences/phrases input is an anagram using predefined functions in string.h and by using arrays?

862

Hi, I want the code to fetch multiple rows in REXX using RLX and CURSOR. Can anyone help me?

1209

How to get the version(major,minor,revision ) of VB6.0 delphi code .I am able to fetch dll file of vb6.0 but not vba file .Can u send me the code snippet in delphi to get the value for vb6.0.

2034

Code for Document Validation in XML.NET?

1064

1.What happens to a session object when the browser associated with it is closed? 2. Explain what happens when a servlet is sent a POST request? 3. Why does only one copy of a servlet get created? 4. Explain what happens when a browser requests a servlet? (for the first time) 5.How is information stored in a session object?

1036

Hi, i have a project that the teacher want a pyramid of numbers in C# or java...when we click a button...the pyramid should be generated in a listbox/or JtextArea...and the pyramid should have the folowing form: 1 232 34543 4567654 567898765 67890109876 7890123210987 890123454321098 90123456765432109 0123456789876543210 Plz help with codes...didn't find anything on the net.

1440

How to export 2 datatables of a single dataset to 2 different worksheets of a single MSExcel file ?

1076

Beautiful is for 012345678 9 and a code for similar word containing the same alphabets

649