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

SDE - Intern

Josh Technology Group
upvote
share-icon
3 rounds | 5 Coding problems

Interview preparation journey

expand-icon
Journey
The company had previously visited my college campus, so I prepared several topics, such as Java OOP, for the interview and practiced problems on Code Studio, along with reviewing concepts in Software Engineering and Operating Systems.
Application story
There were two rounds: Online Coding Round (4 rounds) Interview Round (4 rounds) Online Coding Round: MCQ/Objective Round: This round consists of 40 technical questions, including output-based and OOPs-based questions, along with some SQL questions (Easy-Medium). There are negative markings for incorrect answers. If you clear this round, you will receive a link for the next round. In my college, only 27 students were selected from over 400 students. Subjective Round: This round consists of 3 coding questions and one output-based question (Medium level). You must solve these questions while adhering to the given time and space complexity and providing proper comments; otherwise, you will not be shortlisted. I managed to solve all four questions, but some students who solved only three coding questions were also shortlisted. Ultimately, only seven students were shortlisted from the 27. The questions were based on trees and linked lists.
Why selected/rejected for the role?
I did not qualify because I did not solve the second round of coding questions; otherwise, I qualified in all the other rounds.
Preparation
Duration: 3 Months
Topics: DBMS, SQL, JAVA, OOPS, OS, ALGORITHM, Collections in java
Tip
Tip

Tip 1 : be confident.
Tip 2 : practice at least 100 questions.
Tip 3 : do 3 projects.

Application process
Where: Campus
Eligibility: 7.5 CGPA
Resume Tip
Resume tip

Tip 1 : be confident.
Tip 2 : practice at least 100 questions.
Tip 3 : do 3 projects.

Interview rounds

01
Round
Easy
Online Coding Interview
Duration60 Minutes
Interview date15 Mar 2023
Coding problem2

1. Asteroid Collision

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

You are given an array/list 'asteroids' representing asteroids in a row.


For each element of the given array, its absolute value denotes the size of that asteroid, and its sign denotes the direction it moves in(+ve meaning right and -ve meaning left).


An asteroid with a weight of 0 denotes a massless asteroid that moves in the right direction.


All asteroids are moving at the same speed. Whenever two asteroids collide, the smaller asteroid gets destroyed.


If both asteroids are the same size, then both asteroids get destroyed. Two asteroids moving in the same direction never collide.


You are supposed to find the state of the asteroids after all collisions.


Example :
Input: ‘asteroids’ = [3,-2,4]

Output: [3, 4]

Explanation: The first asteroid will destroy the second asteroid. Hence, after the collision, the state of the asteroids will be [3,4].
Note:
You don’t need to print anything. Just implement the given function.
Try solving now

2. Convert A Given Binary Tree To Doubly Linked List

Moderate
15m average time
80% success
0/80
Asked in companies
RazorpayGoldman SachsWells Fargo

Given a Binary Tree, convert this binary tree to a Doubly Linked List.

A Binary Tree (BT) is a data structure in which each node has at most two children.

A Doubly Linked List contains a previous pointer, along with the next pointer and data.

The order of nodes in Doubly Linked List must be the same as Inorder of the given Binary Tree.

The doubly linked list should be returned by taking the next pointer as right and the previous pointer as left.

You need to return the head of the Doubly Linked List.

For the given binary tree :

alt txt

You need to return the head to the doubly linked list.
The doubly linked list would be: 1 2 3 4 5 and can be represented as:

alt txt

Try solving now
02
Round
Easy
Face to Face
Duration45 Minutes
Interview date16 Mar 2023
Coding problem2

1. Binary Search

Easy
15m average time
85% success
0/40
Asked in companies
OracleMedia.netAdobe

You are given an integer array 'A' of size 'N', sorted in non-decreasing order. You are also given an integer 'target'. Your task is to write a function to search for 'target' in the array 'A'. If it exists, return its index in 0-based indexing. If 'target' is not present in the array 'A', return -1.


Note:
You must write an algorithm whose time complexity is O(LogN)


Try solving now

2. Binary Tree Pruning

Moderate
20m average time
80% success
0/80
Asked in companies
DunzoArcesiumMicrosoft

You have been given a Binary Tree where the value of each node is either 0 or 1. Your task is to return the same Binary Tree but all of its subtrees that don't contain a 1 have been removed.

Note :

A subtree of a node X is X, plus every node that is a descendant of X.

For Example :

Look at the below example to see a Binary Tree pruning.
Input: [1, 1, 1, 0, 1, 0, 1, 0, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]

alt text

Output: [1, 1, 1, -1, 1, -1, 1, -1, -1, -1, -1]

For example, the input for the tree depicted in the below image would be :

alt text

1
2 3
4 -1 5 6
-1 7 -1 -1 -1 -1
-1 -1

Explanation :

Level 1 :
The root node of the tree is 1

Level 2 :
Left child of 1 = 2
Right child of 1 = 3

Level 3 :
Left child of 2 = 4
Right child of 2 = null (-1)
Left child of 3 = 5
Right child of 3 = 6

Level 4 :
Left child of 4 = null (-1)
Right child of 4 = 7
Left child of 5 = null (-1)
Right child of 5 = null (-1)
Left child of 6 = null (-1)
Right child of 6 = null (-1)

Level 5 :
Left child of 7 = null (-1)
Right child of 7 = null (-1)

The first not-null node (of the previous level) is treated as the parent of the first two nodes of the current level. The second not-null node (of the previous level) is treated as the parent node for the next two nodes of the current level and so on.
The input ends when all nodes at the last level are null (-1).

Note :

The above format was just to provide clarity on how the input is formed for a given tree.

The sequence will be put together in a single line separated by a single space. Hence, for the above-depicted tree, the input will be given as:
1 2 3 4 -1 5 6 -1 7 -1 -1 -1 -1 -1 -1
Try solving now
03
Round
Easy
HR Round
Duration30 Minutes
Interview date16 Mar 2023
Coding problem1

1. Basic HR Questions

Why do you want to work for our company?

What are your greatest strengths and weaknesses?

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
SDE - Intern
6 rounds | 14 problems
Interviewed by Josh Technology Group
5557 views
0 comments
0 upvotes
company logo
SDE - Intern
5 rounds | 6 problems
Interviewed by Josh Technology Group
3245 views
0 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Josh Technology Group
1121 views
1 comments
0 upvotes
company logo
SDE - Intern
7 rounds | 7 problems
Interviewed by Josh Technology Group
1113 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Arcesium
3688 views
0 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 5 problems
Interviewed by Arcesium
2650 views
0 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 5 problems
Interviewed by BNY Mellon
2324 views
0 comments
0 upvotes