Discuss
Interview experiences, the questions people were asked, and salaries, shared by software engineers. 817 posts so far.
-
Societe Generale: Integer stack in C++, then a generic one with templates
Problem. Implement a stack of integers in C++ with proper handling of edge cases. Follow up. Turn it into a generic stack using templates so it works for any element type. Context.
-
Virtusa: Print a matrix in spiral order
Problem. Given a 2D array, print its elements in spiral order, starting at the top left and moving clockwise toward the centre. Context. It was the third of four problems in a camp
-
Standard Chartered: Minimum edge reversals so every node is reachable in a tree
Problem. You get a tree whose edges have directions. Work out the minimum number of edges to reverse so that every node can be reached from a starting node. It was the harder of tw
-
Nagarro: Count derangements of n items
Problem. Count the number of ways to arrange n items so that no item ends up in its original position. Context. This was the hardest of three problems in the fresher coding test, a