Code360 powered by Coding Ninjas X Naukri.com. Code360 powered by Coding Ninjas X Naukri.com
JUSPAY interview experience Real time questions & tips from candidates to crack your interview

SDE - 1

JUSPAY
upvote
share-icon
1 rounds | 2 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 2.5 months
Topics: Data Structures, Pointers, OOPS, System Design, Algorithms, Dynamic Programming
Tip
Tip

Tip 1 : Do some projects.
Tip 2 : Practice dynamic programming.
 

Application process
Where: Campus
Eligibility: Above 6 CGPA
Resume Tip
Resume tip

Tip 1 : Keep it short.
Tip 2 : Do not put false things on resume.

Interview rounds

01
Round
Hard
Online Coding Interview
Duration90 minutes
Interview date7 Apr 2021
Coding problem2

Timing was late evening. Platform was good.

1. Largest Cycle

Easy
15m average time
85% success
0/40
Asked in companies
VisaJUSPAY

You are given a maze consisting of N cells numbered from 0 to N - 1 and an array ‘arr’ of N integers in which arr[i] contains the cell number that can be reached from ‘i’th cell in one step. You are supposed to find the length of the largest cycle in the maze, given that each cell has less than or equal to 1 exit but can have multiple entry points.

Note:
The maze may contain self-cycles.
arr[i] = -1 means the ‘i’th cell doesn’t have an exit.
Try solving now

2. Ninja and the Maze

Moderate
35m average time
65% success
0/80
Asked in companies
UberAppleAccolite

Ninja went to an amusement park and visited a maze. Now, he is stuck in the maze. He can go in any direction(Up, Down, Left, or Right) from this point, but he cannot change his direction of motion until he comes across a wall in its path. Once he stops, he can choose his new direction.

Now, you are given Ninja’s starting point, the destination he wants to reach, and the maze in the form of a 2D matrix. You need to find out if Ninja can reach the destination from the starting point or not.

The maze is represented by a 2D array. ‘1’ means Ninja came across a wall and he needs to stop. ‘0’ means that it is an empty space and he can keep moving.

The coordinates of starting point and destination are represented by row and column numbers.

For Example
Given maze: {[0, 0, 1], [1, 0, 0], [1, 0, 0]} 
Starting point: [2, 2]
Destination: [0, 0]

For the above example maze will look like this:

maze

So, we can see there are 2 ways for Ninja to reach destination(D), from the starting point(SP). They are: [left -> up -> left] and [up -> left -> up -> left].
So, you need to print true.
Try solving now

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Skill covered: Programming

Which is a DDL command in SQL?

Choose another skill to practice
Start a Discussion
Similar interview experiences
company logo
SDE - 1
2 rounds | 1 problems
Interviewed by JUSPAY
1750 views
0 comments
0 upvotes
company logo
SDE - 1
1 rounds | 1 problems
Interviewed by JUSPAY
3519 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 3 problems
Interviewed by JUSPAY
2728 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 5 problems
Interviewed by JUSPAY
2167 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
5 rounds | 12 problems
Interviewed by Amazon
104483 views
24 comments
0 upvotes
company logo
SDE - 1
4 rounds | 5 problems
Interviewed by Microsoft
49657 views
5 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Amazon
30954 views
6 comments
0 upvotes