Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...



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.

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

21 36597

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

Mentor Graphics, Microsoft,

2 19433

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

Fusion Systems GmbH,

6 15077

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

Microsoft,

10 17733

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 7904

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 24973

program to Reverse a linked list

Aricent, Microsoft, Ness Technologies,

12 51297

write a program to Insert in a sorted list

Microsoft,

4 11524

Program to Delete an element from a doubly linked list.

College School Exams Tests, Infosys,

4 29829

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

Adobe, Amazon, EFI, Imagination Technologies,

13 79311

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

Microsoft,

3 14755

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

Intel, Microsoft, TCS,

12 28360

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 11320

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

2 15647

How 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







Un-Answered Questions { Code Snippets }

Discuss an algorithm to traverse a tree, depth first.

882


What is the functionality of EnumWindows?

493


Coding for .NET Delegates?

1646


an on-line examination application using html jsp servlet and jdbc. including session management and cookies

4046


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

1426






Write a Program to find the reverse of a given number.

162


how to use the GetTickCount() properly and what is that procedure for?

2264


How to print sum of the numbers starting from 1 to 100?

137


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 ??

1214


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

1035


How to palindrom string in c language?

6643


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

4994


What is GUID anyway?

517


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

2225


Write a python program to swap the first and last value of a list?

146