0 day streak

Discuss

Interview experiences, the questions people were asked, and salaries, shared by software engineers. 817 posts so far.

  1. Anonymousshared experience·

    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.

    Question #Societe Generale SDE 1 0 5 0
  2. Anonymousshared experience·

    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

    Question #Virtusa SDE 1 0 5 0
  3. Anonymousshared experience·

    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

    Question #Standard Chartered SDE 1 0 5 0
  4. Anonymousshared experience·

    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

    Question #Nagarro SDE 1 0 5 0