Monthly Archives: August 2013

Maha important puzzles

1. Hour glass: http://dailybrainteaser.blogspot.in/2013/07/hour-glass-riddle.html

2. Water jug problem: (figured out an algorithm) http://dailybrainteaser.blogspot.in/search?updated-max=2013-07-19T00:10:00%2B05:30&max-results=7&start=14&by-date=false

3. Chameleon: http://gurmeet.net/puzzles/chameleons/

4. Fox in hole: http://gurmeet.net/puzzles/fox-in-a-hole/

5. Cube cutting: http://gurmeet.net/puzzles/cube-cutting/

6. Ant collisions: http://gurmeet.net/puzzles/ant-collisions/

7. Colored heavy and light balls: http://gurmeet.net/puzzles/six-colored-balls-two-weighings/

8. Cards flipped and blind man: http://gurmeet.net/puzzles/blind-man-and-cards/

9. Magicians and hats (W and B): http://gurmeet.net/puzzles/whats-the-color-of-my-probabilistic-hat/

10. Black and white balls in 3 containers: http://gurmeet.net/puzzles/three-boxes-with-two-balls-each/

11. 3 light and 3 heavy marbles (lookalike): http://gurmeet.net/puzzles/three-heavy-and-three-light-balls/

12. Puzzle caps: http://gurmeet.net/puzzles/cap-colors/

13. Salaries: http://www.techinterview.org/post/491505435/salaries

Gurmeet puzzle left:

2, 8, 9, 10, 11, 13, 16, 18, 19, 21, 23, 27, 29, 34 onwards

Advertisements

Leave a comment

Filed under Interviews

C++ important links

  1. http://www.learncpp.com/cpp-tutorial/121-pointers-and-references-to-the-base-class-of-derived-objects/ (array animal example)
  2. http://www.learncpp.com/cpp-tutorial/122-virtual-functions/ (array animal example)

Left:

When do we pass arguments by reference or pointer?

Initializer list: when to use?

More about default constructor

Virtual destructors prevent memory leak !

Multiple inheritance in C++ (Initialization list process: 2nd problem)

RTTI

Advanced C conversion operators

* * * * *

Leave a comment

Filed under Interviews

GS attempts

Attempt 1:

Written round: C++, SQL, Analytical reasoning

Round – 1:

  • Write a function to return angle between minute hand and hour hand at any particular time (as input)
  • Give nth number in Fibonacci series
  • Stack implementation

Round – 2:

  • Pirate and gold coin puzzle
  • Circular parking lot puzzle

Round – 3:

  • Given 20,000 numbers (in range 1-25,000), store them in a space of 4000 bytes
  • What is ‘Pure Virtual Constructor’?
  • When is copy constructor called? What about assignment operator?
  • c = a+++++b, how does compiler distinguish what is this?

*****

Leave a comment

Filed under Interviews