Josh Technology Group interview experience Real time questions & tips from candidates to crack your interview

SDE - Intern

Josh Technology Group
upvote
share-icon
6 rounds | 14 Coding problems

Interview preparation journey

expand-icon
Journey
My journey started from the class 11th where I was first introduced with the field of computer science and it fascinated me from the very start. I admired this option of career and I took admission in NIT, Tiruchirappali which also played great role in nurturing myself. I took a online course from coding ninjas to practice DSA and learned development tech stacks from youtube.
Application story
At the end of 5th semester, all of my friends were having internships in their bag but I was struggling to get one. One of my friend was already working in Josh Technology as SDE-1., I called him and asked for a referral for the post of intern in his company and he provided me the referral.
Why selected/rejected for the role?
I was selected because I was very clear with the approaches that I took and I was able to explain the intuation behind every solution. Moreover, I got good score in MCQs Test in the first round.
Preparation
Duration: 6 months
Topics: DSA, Project, Development, Programming Languages, OOPS
Tip
Tip

Tip 1 : Be strong at your basics.
Tip 2 : Do at least 2 projects and ask to find answers like why are you choosing this tech stack? why did not you choose its alternatives Know your project in and out because they might ask you for a modification in your project?

Application process
Where: Referral
Eligibility: No criteria
Resume Tip
Resume tip

Tip 1 : Have some projects on your resume.
Tip 2 : Do not put false things on your resume.
Tip 3 : Try to keep a single-page resume.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration50 minutes
Interview date2 Oct 2020
Coding problem0

There were around 50 MCQ's on C/C++/DSA.
There were no negative marking though.
There were option to go back also and you can check which question you answered or not.

02
Round
Medium
Online Coding Test
Duration75 minutes
Interview date8 Dec 2020
Coding problem3

It was a online coding round.

1. Multiply Linked Lists

Easy
15m average time
85% success
0/40
Asked in companies
AmazonSamsungJosh Technology Group

Given two numbers represented by linked lists. Your task is to find the multiplied list and return the head of the multiplied list.

The multiplied list is a linked list representation of the multiplication of two numbers.

Try solving now

2. Longest Alternating Subsequence

Moderate
15m average time
85% success
0/80
Asked in companies
BarclaysAmazonGoogle

You are given an array ‘ARR’ of integers. Your task is to find the length of the longest alternating subsequence.

Note:
A sequence a1, a2, .... an is called an alternating sequence if its elements satisfy one of the following relations : a1 < a2 > a3 < a4 > a5..... or  a1 > a2 < a3 > a4 < a5.
For example:
'ARR' = {3, 10, 1, 2, 30}, the longest alternating subsequence for this array can be {3, 10, 1, 30} or {3, 10, 2, 30}. Therefore, the answer will be 4.
Try solving now

3. Rotate Matrix K times

Moderate
0/80
Asked in companies
UHGZoho CorporationJosh Technology Group

Given a matrix, clockwise rotate elements in it K times. Rotating the matrix by 90 degrees clockwise will be counted as 1.

See the sample input.

Try solving now
03
Round
Medium
Online Coding Test
Duration70 mintues
Interview date15 Dec 2020
Coding problem3

It was an online coding round.

1. Add Linked Lists

Easy
20m average time
80% success
0/40
Asked in companies
Morgan StanleyQualcommIntuit

Given two numbers represented by linked lists. Your task is find the sum list and return the head of the sum list.

The sum list is a linked list representation of addition of two numbers.

Try solving now

2. Buy and Sell Stock

Hard
0/120
Asked in companies
MyntraGrowwAtlassian

You are Harshad Mehta’s friend. He told you the price of a particular stock for the next ‘n’ days.


You are given an array ‘prices’ which such that ‘prices[i]’ denotes the price of the stock on the ith day.


You don't want to do more than 2 transactions. Find the maximum profit that you can earn from these transactions.


Note

1. Buying a stock and then selling it is called one transaction.

2. You are not allowed to do multiple transactions at the same time. This means you have to sell the stock before buying it again. 
Example:
Input: ‘n’ = 7, ‘prices’ = [3, 3, 5, 0, 3, 1, 4].

Output: 6

Explanation: 
The maximum profit can be earned by:
Transaction 1: Buying the stock on day 4 (price 0) and then selling it on day 5 (price 3). 
Transaction 2: Buying the stock on day 6 (price 1) and then selling it on day 6 (price 4).
Total profit earned will be (3 - 0) + ( 4 - 1) = 6. 
Try solving now

3. Is Height Balanced Binary Tree

Moderate
15m average time
85% success
0/80
Asked in companies
Paytm (One97 Communications Limited)AmazonAdobe

You are given the root node of a binary tree.


Return 'true' if it is a height balanced binary tree.


Note:
Height of a tree is the maximum number of nodes in a path from the node to the leaf node.

An empty tree is a height-balanced tree. A non-empty binary tree is a height-balanced binary tree if
1. The left subtree of a binary tree is already the height-balanced tree.
2. The right subtree of a binary tree is also the height-balanced tree.
3. The difference between heights of left subtree and right subtree must not more than ‘1’.


Example:

Input: Consider the binary tree given below:

alt text

Output: 'true'

Explanation:
Consider subtree at Node ( 7 ) 
Left subtree height is ‘0’ and right subtree height is ‘0’, the absolute height difference is ‘0-0 = 0’ and ‘0’ is not more than ‘1’ so subtree at Node ( 7 ) is a height-balanced binary tree. 
Same for subtrees at Nodes ( 5, 6 ). 

Consider subtree at Node ( 4 ) 
Left subtree height is ‘1’ and right subtree height is ‘0’, the absolute height difference is ‘1-0 = 1’ and ‘1’ is not more than ‘1’ so subtree at Node ( 4 ) is a height-balanced binary tree.
Same for subtree at Node ( 3)

Consider subtree at Node ( 2 ) 
Left subtree height is ‘2’ and right subtree height is ‘1’, the absolute height difference is ‘2-1 = 1’ and ‘1’ is not more than ‘1’ so subtree at Node ( 2 ) is a height-balanced binary tree.

Consider subtree at Node ( 1 ) 
Left subtree height is ‘3’ and right subtree height is ‘2’, the absolute height difference is ‘3-2 = 1’ and ‘1’ is not more than ‘1’ so subtree at Node ( 1 ) is a height-balanced binary tree.

Because the root node ( 1 ) is a height-balanced binary tree, so the complete tree is height-balanced.


Try solving now
04
Round
Medium
Video Call
Duration90 minutes
Interview date20 Oct 2020
Coding problem3

In this round, three questions were asked and all of them were based on DSA.

1. Sum root to leaf

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

You are given an arbitrary binary tree consisting of N nodes where each node is associated with a certain integer value from 1 to 9. Consider each root to leaf path as a number.

For example:

       1
      /  \
     2    3

The root to leaf path 1->2 represents the number 12.
The root to leaf path 1->3 represents the number 13.

Your task is to find the total sum of all the possible root to leaf paths.

In the above example,

The total sum of all the possible root to leaf paths is 12+13 = 25
Note:
The output may be very large, return the answer after taking modulus with (10^9+7).
Try solving now

2. Remove BST keys outside the given range

Easy
15m average time
85% success
0/40
Asked in companies
PhonePePayPalSamsung R&D Institute

Given a Binary Search Tree (BST) and a range [min, max], remove all keys which are outside the given range. The modified tree should also be BST.

Try solving now

3. Maximum sum of non-adjacent elements

Moderate
15m average time
85% success
0/80
Asked in companies
Expedia GroupOYOOLX Group

You are given an array/list of ‘N’ integers. You are supposed to return the maximum sum of the subsequence with the constraint that no two elements are adjacent in the given array/list.

Note:
A subsequence of an array/list is obtained by deleting some number of elements (can be zero) from the array/list, leaving the remaining elements in their original order.
Try solving now
05
Round
Medium
Video Call
Duration120 minutes
Interview date30 Oct 2020
Coding problem4

In this round, three questions were asked and all of them were based on DSA and a little bit about projects.

1. Minimum Jumps

Moderate
25m average time
75% success
0/80
Asked in companies
DirectiMorgan StanleyAdobe

Bob lives with his wife in a city named Berland. Bob is a good husband, so he goes out with his wife every Friday to ‘Arcade’ mall.

‘Arcade’ is a very famous mall in Berland. It has a very unique transportation method between shops. Since the shops in the mall are laying in a straight line, you can jump on a very advanced trampoline from the shop i, and land in any shop between (i) to (i + Arr[i]), where Arr[i] is a constant given for each shop.

There are N shops in the mall, numbered from 0 to N-1. Bob's wife starts her shopping journey from shop 0 and ends it in shop N-1. As the mall is very crowded on Fridays, unfortunately, Bob gets lost from his wife. So he wants to know, what is the minimum number of trampoline jumps from shop 0 he has to make in order to reach shop N-1 and see his wife again. If it is impossible to reach the last shop, return -1.

Try solving now

2. N Queens

Hard
55m average time
35% success
0/120
Asked in companies
GoogleShareChatDunzo

You are given an integer 'N'. For a given 'N' x 'N' chessboard, find a way to place 'N' queens such that no queen can attack any other queen on the chessboard.

A queen can be killed when it lies in the same row, or same column, or the same diagonal of any of the other queens. You have to print all such configurations.

Try solving now

3. Closest Leaf To Given Node In Binary Tree

Moderate
15m average time
85% success
0/80
Asked in companies
Paytm (One97 Communications Limited)Paytm (One97 Communications Limited)GoDigitley

Ninja is stuck in a maze which is in a form of a binary tree. He needs your help in order to get out.

Ninja is presently at the node ‘X’. The only exit points of the maze are the leaf nodes of the tree. You need to tell him the distance to the nearest exit point from his current location. This will help him decide which path he should take in order to escape from the maze.

Example:

sample tree 1

Suppose, Ninja is stuck at node 62. The possible exit points in the maze are: 40, 10, and 20. From all the possible exit points the closest ones are 10 and 20 which are at a distance of 1 unit.
Try solving now

4. Technical Questions

Basic questions from Javatpoint on DBMS, OS.
A recent project that you worked on and About my Internship.

06
Round
Easy
HR Round
Duration25 mintues
Interview date30 Oct 2020
Coding problem1

It was on the same day of the last technical round, I was on the same site as the technical interview round, and it is about myself and basic information.

1. Basic HR Questions

What do your friends/co-workers say about you?

What did you do in the last year to improve your knowledge?

Problem approach

Tip 1 : Be yourself
Tip 2 : Speak after think
Tip 3 : Speak in positive ways.

Here's your problem of the day

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

Skill covered: Programming

Which SQL keyword removes duplicate records from a result set?

Choose another skill to practice
Similar interview experiences
company logo
SDE - Intern
5 rounds | 6 problems
Interviewed by Josh Technology Group
2840 views
0 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Josh Technology Group
885 views
1 comments
0 upvotes
company logo
SDE - Intern
7 rounds | 7 problems
Interviewed by Josh Technology Group
862 views
0 comments
0 upvotes
company logo
SDE - Intern
6 rounds | 16 problems
Interviewed by Josh Technology Group
3770 views
3 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Arcesium
3234 views
0 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 5 problems
Interviewed by Arcesium
2195 views
0 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 5 problems
Interviewed by BNY Mellon
1971 views
0 comments
0 upvotes