You are given a number n, you have to find all prime numbers from 1 upto n and print them (or save them in an array). A varriation is (which changes the answer) is you are given two numbers m and n and you are to find all prime numbers between them.
Software Interview Questions
550,722 software interview questions shared by candidates
Swap two variables without using a temp.
Check if a String contains a number or not
there is a 5 lit can,3 lit can if i want 4 lit how will u give me?
Which programming language you most familiar with?
There is an array of size n which consists of any numbers from 1 to n .Find the numbers in the array which are appear more than once
* Write a function, preferably in C or C++, to reverse a string.
Onsite Interview 2 a): check whether a number is the power of 2 b) Skyline silhouette puzzle . c) Discussion on uses of hash-tables and trees ? d) Few general questions on Work and academic background .
How would you determine if someone has won a game of tic-tac-toe on a board of any size?
Write algorithm to compute a Log to the base 2 of a number (integral results no need for floating point). Solution should not assume a particular size of integer
Viewing 811 - 820 interview questions