JUSPAY interview experience Real time questions & tips from candidates to crack your interview

Frontend Developer

JUSPAY
upvote
share-icon
2 rounds | 4 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 3 months
Topics: Strings, Arrays, Sorting algorithms, Linked List, Loops, Sliding windows, Graphs, Trees, OOPS, DSA, DBMS
Tip
Tip

Tip 1 : Do atleast 2 projects
Tip 2 : Complete competitive programming
Tip 3 : Practice more interview Questions particular to the company applying to

Application process
Where: Hackerearth
Eligibility: Passouts 2020/2021
Resume Tip
Resume tip

Tip 1 : Don't lie on resume
Tip 2 : Try to wrap resume in one page

Interview rounds

01
Round
Medium
Online Coding Interview
Duration180 Minutes
Interview date27 Jun 2021
Coding problem2

It had some coding questions related to graph.

1. Dijkstra's shortest path

Easy
20m average time
70% success
0/40
Asked in companies
Celebal TechnologiesIttiamJosh Technology Group

You have been given an undirected, connected graph of ‘V’ vertices (labelled from 0 to V-1) and ‘E’ edges. Each edge connecting two nodes 'u' and 'v' has a weight denoting the distance between them.


Your task is to find the shortest path distance from the source node 'S' to all the vertices. You have to return a list of integers denoting the shortest distance between each vertex and source vertex 'S'.


Note:

1. There are no self-loops(an edge connecting the vertex to itself) in the given graph.

2. There are no parallel edges i.e no two vertices are directly connected by more than 1 edge.


For Example:

Input:
4 5
0 1 5
0 2 8
1 2 9
1 3 2
2 3 6

alt te

The source node is node 0.

The shortest distance from node 0 to node 0 is 0.

The shortest distance from node 0 to node 1 is 5. In the above figure, the green path represents this distance. The path goes from node 0->1, giving distance = 5.

The shortest distance from node 0 to node 2 is 8. In the above figure, the pink path represents this distance. The path goes from node 0->2, giving distance = 8.

The shortest distance from node 0 to node 3 is 7. In the above figure, the yellow path represents this distance. The path goes from node 0->1->3, giving distance = 7.
Try solving now

2. Check If Path Exists

Easy
10m average time
90% success
0/40
Asked in companies
AmazonGrofersArcesium

You are given a directed and unweighted graph of 'V' vertices and 'E' edges. All edges are given in a 2-dimensional array ‘Edges’ in which ‘Edges[i][0]’ and ‘Edges[i][1]’ contain an edge. Your task is to check if there exists a path from the vertex 'source' to 'destination'.

For Example:
Consider the number of vertices is 4 and number of edges is 3, and the array of edges is:
[ [0, 1]
  [1, 2] 
  [2, 3] ]
there exists one path between 0 and 2, which is 0 -> 1 -> 2. Hence, the answer is 'true'.
Try solving now
02
Round
Hard
Online Coding Interview
Duration180 Minutes
Interview date8 Aug 2021
Coding problem2

The round was really tough only 1 coding question was asked

1. Encode N-ary tree to binary tree

Hard
45m average time
55% success
0/120
Asked in companies
AppleJUSPAYGoogle inc

You have been given an N-ary tree ‘N’ nodes with node ‘1’ as head of the tree. Encode the above N-ary tree into a binary tree such that if only the encoded binary tree was given to you, you could restore the N-ary tree from the encoded binary tree. You also need to write a function that could decode a given binary tree and return a N-ary tree as in input format.

Note:
There is no restriction on how you encode/decode the N-ary tree.
Example:
N-ary Tree is given as follows:-
6
1 -1 2 3 4 -1 5 -1 6 -1 -1 -1 -1
The above N-ary tree and its encoded binary tree can be represented as follows:-

subsequence

The above binary tree can be represented as follows in their level order traversal:-
1
2 -1
5 3
-1 -1 6 4
-1 -1 -1 -1
Try solving now

2. Technical Questions

What are the different lifecycle methods in React?

 Explain Strict Mode in React.

How to prevent re-renders in React?

Here's your problem of the day

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

Skill covered: Programming

What is recursion?

Choose another skill to practice
Similar interview experiences
company logo
Security Engineer
3 rounds | 7 problems
Interviewed by JUSPAY
2281 views
1 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 7 problems
Interviewed by JUSPAY
0 views
0 comments
0 upvotes
company logo
SDE - Intern
1 rounds | 3 problems
Interviewed by Amazon
3320 views
0 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 10 problems
Interviewed by JUSPAY
813 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Frontend Developer
3 rounds | 11 problems
Interviewed by Amdocs
2480 views
0 comments
0 upvotes