Web Interview Questions | Glassdoor

Web Interview Questions

3,347

Web interview questions shared by candidates

Top Interview Questions

Sort: RelevancePopular Date

1) Given a string of parantheses, check if the string is valid. ex: [[]] is valid, ][][ is not valid. How would you solve if the parantheses could be of different types like {,[,(

6 Answers

How would you implement integer division if your language did not offer it.

5 Answers

You have 1000 computers. Each computer contains a text file containing 1 billion floating point numbers. Design an algorithm or algorithms for extracting the top 1000 numbers from the entire list. Describe in detail how long it would take to process and why.

7 Answers

“Imagine that you have three boxes, one containing two black marbles, one containing two white marbles, and the third, one black marble and one white marble. The boxes were labeled for their contents - BB, WW, BW - but someone has switched the labels so that every box is now incorrectly labeled. You are allowed to take one marble at a time out of any box, without looking inside, and by this process of sampling you are to determine the contents of all three boxes. What is the smallest number of drawings needed to do this?”

4 Answers

Vertically and horizontally center an element on the screen using css.

8 Answers

One of the software engineers asked me the question about the colored chameleons bonking into each other question. Basically, there are 15 red, 17 green, and 19 blue chameleons on a desert island. Whenever two chameleons of different colors collide, they both become chameleons of the third color. Can it ever be that all the chameleons on the island are the same color?

3 Answers

How to discover if the given number is Power of 2 ?

4 Answers

Would you be comfortable taking a couple quizes?

3 Answers

Is it possible for the following function to go into an infinite loop given an array and its size in C: void foo( int* array , int array_size ) { int index = 0; for( ; index < array_size ; index++) array[ index ] = 0; }

2 Answers

How do you detect for the first repeated character in a string? How do you detect whether or not a word is a palindrome?

3 Answers
1120 of 3,347 Interview Questions