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

SDE - 1

Josh Technology Group
upvote
share-icon
4 rounds | 7 Coding problems

Interview preparation journey

expand-icon
Journey
A tech enthusiast interested in engineering, innovation, and science. I have a good knowledge of web development, particularly backend development. I am always looking forward to learning more about different technologies, whether from an IT background or any other engineering domain.
Application story
It was an on-campus opportunity, so I followed the company's procedure. There were two rounds of tests. First, a basic aptitude round with some MCQ coding questions. Then, there was a DSA round with three questions and a 90-minute time limit.
Why selected/rejected for the role?
I was rejected for the role, mainly because I failed to solve the questions in the interview round. Some key takeaways would be to keep a cool head during the interview and also prepare well beforehand.
Preparation
Duration: 1 month
Topics: Data Structures, Algorithms, OOPS, DBMS, JavaScript
Tip
Tip

Tip 1: Prepare DSA well. 

Tip 2: Have a good knowledge of your resume.

Application process
Where: Campus
Eligibility: 6.5 CGPA, (Salary Package: 14 LPA)
Resume Tip
Resume tip

Tip 1: Have a good knowledge of everything written in your resume. 

Tip 2: Use a good template.

Interview rounds

01
Round
Medium
Online Coding Test
Duration60 minutes
Interview date14 Aug 2024
Coding problem1

Three questions in 60 minutes at their office.

1. Reverse Linked List

Moderate
15m average time
85% success
0/80
Asked in companies
DelhiveryOracleCIS - Cyber Infrastructure

Given a singly linked list of integers. Your task is to return the head of the reversed linked list.

For example:
The given linked list is 1 -> 2 -> 3 -> 4-> NULL. Then the reverse linked list is 4 -> 3 -> 2 -> 1 -> NULL and the head of the reversed linked list will be 4.
Follow Up :
Can you solve this problem in O(N) time and O(1) space complexity?
Problem approach

Used Linked list reversing algorithm itself.

Try solving now
02
Round
Easy
Face to Face
Duration60 minutes
Interview date14 Aug 2024
Coding problem2

1. Maximum Average Value Of A Subtree

Moderate
25m average time
75% success
0/80
Asked in companies
Flipkart limitedJosh Technology Group

You are given a binary tree having 'N' nodes. Each node of the tree has an integer value. Your task is to find the maximum average of node values of any subtree of the given tree.

Problem approach

DFS recursion.

Try solving now

2. First Repeated Character

Moderate
30m average time
70% success
0/80
Asked in companies
Goldman SachsDelhiveryExpedia Group

You are given a string 'STR' of lowercase English alphabets. You need to find the repeated character present first in the string.

Example:
If the string is: “abccba”, then the first repeated character is ‘c’, but the repeated character that is present first in the string is ‘a’. You need to print ‘a’.
Note:
Keep in mind that you need to print the repeated character that is present first in the string and not the first repeating character.
Problem approach

Use an array whose index denotes the position of character in alphabetical order.

Try solving now
03
Round
Hard
Face to Face
Duration60 minutes
Interview date14 Aug 2024
Coding problem2

Around the afternoon at their office.

1. Distributing Coins

Moderate
45m average time
55% success
0/80
Asked in companies
AppleUberWalmart

You are given the ‘ROOT’ of a binary tree with ‘N’ nodes where each node in the tree has some coins, and there are ‘N’ coins total. In one move, we may choose two adjacent nodes and move one coin from one node to another.

Your task is to return the number of moves required to make every node have exactly one coin.

Note:

A move may be from parent to child or from child to parent.

For example,

Given ‘ROOT’ = [2,-1,0,-1,-1]

The tree would look like this : 

The answer would be 1, because the root node will transfer 1 coin to its right child. Thus both nodes have the same number of coins now.
Problem approach

DFS recursion in the post-order traversal. Each node must have one coin at the end, so pass the value of (current_number_of_coins - 1) to the parent node. At the parent node, calculate the moves required to satisfy the needs of the child nodes.

Try solving now

2. Rose Garden

Moderate
30m average time
79% success
0/80
Asked in companies
Josh Technology GroupCohesityGoogle inc

You are given 'n' roses and you are also given an array 'arr' where 'arr[i]' denotes that the 'ith' rose will bloom on the 'arr[i]th' day.


You can only pick already bloomed roses that are adjacent to make a bouquet. You are also told that you require exactly 'k' adjacent bloomed roses to make a single bouquet.


Find the minimum number of days required to make at least 'm' bouquets each containing 'k' roses. Return -1 if it is not possible.


Example :
Input: n = 9,  arr = [ 1, 2, 1, 2, 7, 2, 2, 3, 1 ], k = 3, m = 2

Output: 3. 

Explanation: This is because on the 3rd day: all the roses with 'arr[i]' less than equal to 3 have already bloomed, this means every rose except the 5th rose has bloomed. Now we can form the first bouquet from the first three roses and the second bouquet from the last three roses.
Problem approach

The idea is that the seeding time is fixed and non-overlapping, meaning only one flower can be seeded at a time, and you need to wait before the next flower can be seeded. So, sort the flowers based on their growing time after seeding and plant them accordingly.

Try solving now
04
Round
Hard
Face to Face
Duration60 minutes
Interview date14 Nov 2024
Coding problem2

Late night.

1. Closest Leaf To Given Node In Binary Tree

Moderate
15m average time
85% success
0/80
Asked in companies
Cerner CorporationJosh Technology GroupGoDigitley

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.
Problem approach

Was not able to solve this properly.

Try solving now

2. House Robber

Moderate
26m average time
0/80
Asked in companies
OptumWalmartExpedia Group

A thief wants to loot houses. He knows the amount of money in each house. He cannot loot two consecutive houses. Find the maximum amount of money he can loot.

Problem approach

Just follow the DP approach used to solve the "robbing of houses" problem in a non-cyclic array: start from the first index, and then from the 0th index (but this time, go only up to the second-to-last element)

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

What is the purpose of the return keyword?

Choose another skill to practice
Similar interview experiences
company logo
SDE - 1
3 rounds | 6 problems
Interviewed by Josh Technology Group
1854 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 6 problems
Interviewed by Josh Technology Group
1505 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 6 problems
Interviewed by Josh Technology Group
1007 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 3 problems
Interviewed by Josh Technology Group
1473 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
2 rounds | 3 problems
Interviewed by BNY Mellon
6315 views
3 comments
0 upvotes
company logo
SDE - 1
3 rounds | 6 problems
Interviewed by BNY Mellon
0 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 5 problems
Interviewed by CIS - Cyber Infrastructure
2179 views
0 comments
0 upvotes