Open In App

Narvar Interview Experience (6 Years Experienced)

Last Updated : 01 Nov, 2020
Improve
Improve
Like Article
Like
Save
Share
Report

Had 2 Rounds:

  • Coding Round – DS & algo
  • Design Round

Round 1: Design a game. There are blocks nodes connected in an undirected graph fashion. Each node has a color. You have to write three functions whose definition is

  1. addNode(int Node, String homecolor): Add a node in the game with given no and color.
  2. connect(int node1, int node2): Connect node1 and node2 in the game
  3. List<Integer> path(int startingNode, String winningColor): Determine any path  given a starting node if if connects to a node with the given winning color.

Round 2:

  1. Design a Lift management system for conglomerate of lifts starting with one lift. Have to write OOPS class structure.

Like Article
Suggest improvement
Previous
Next
Share your thoughts in the comments

Similar Reads