Samsung 3 Hour Coding Test Questions

There is a single problem statement which involves concepts like Backtracking(recursion), Graphs(Traversal, Coloring, etc).

Now the points to be noted are:

  1. You have to code in a coding editor which is provided by Samsung.
  2. You have to implement required data structure like stacks, queues, etc from scratch and you are not allowed to use default data structures (like STL in C++ or Collection in JAVA) provided by the programming languages.
  3. There are generally 50 test cases or more (in my case there were 100, second time it were 30, one of my friends found 10 test case only), all of which have to be passed in order to get selected.
  4. The Stack size and Heap size are limited. I can’t recall the exact restrictions but they require you to code an efficient solution. Generally what happens is that during backtracking the number of recursive calls gets out of bounds leading to filling up of stack memory and eventually wrong answers. So try to eliminate duplicate cases during backtracking and number of variables used. Design your solution keeping these things in mind.
  5. No other library except I/O is allowed to be used.
  6. In my experience backtracking problems come in form of a puzzle, and the problems on graphs are not very twisted and you can easily figure out what to use.
  7. The number of submissions allowed is capped to 10 but you can run test cases any number of times even with your own test cases.

Samsung 3 Hour Coding Test Questions:

Samsung Interview Questions asked in Samsung 3 Hour Test | Set 1

Samsung Interview Questions asked in Samsung 3 Hour Test | Set 2

Samsung Interview Questions asked in Samsung 3 Hour Test | Set 3

Samsung Interview Questions asked in Samsung 3 Hour Test | Set 4

Samsung Interview Questions asked in Samsung 3 Hour Test | Set 5


Samsung Interview Questions | Data Structure and Algorithms | Set 1

Samsung Interview Questions | Data Structure and Algorithms | Set 2

Samsung Interview Questions | Data Structure and Algorithms | Set 3


Samsung Interview Questions | C/C++/Java/Operating System | Set 1

Samsung Interview Questions | C/C++/Java/Operating System | Set 2

Samsung Interview Questions | C/C++/Java/Operating System | Set 3


Samsung Interview Questions | Output Questions | C/C++/Java

Samsung System Design Interview Questions

Samsung HR Questions