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

SDE - 1

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

Interview preparation journey

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

Tip 1 : Good Knowledge of Time and Space Complexity
Tip 2 : Practice DSA Questions

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

Tip 1 : Have some projects on your resume.
Tip 2 : Do not put false things on your resume.

Interview rounds

01
Round
Easy
Online Coding Interview
Duration90 Minutes
Interview date16 Aug 2019
Coding problem2

This round consists of 50 MCQs on C++ programming language, we were given 50 minutes to solve 50 questions, this phase also had some output based ques where we were given a code snippet, and we were supposed to type the output of that program. Output-based questions didn’t have negative marking where the MCQ questions had negative marking, if you attempt around 30 questions you will be shortlisted for the next 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.

Problem approach

Step 1) Initialize a variable to zero
Step 2) Start traversing the linked list
Step 3) Add the value of first node to this variable
Step 4) From the second node, multiply the variable by 10 and also take modulus of this value by 10^9+7 and then add the value of the node to this variable.
Step 5) Repeat step 4 until we reach the last node of the list.

Try solving now

2. Split Array Into Maximum Subarrays

Moderate
25m average time
50% success
0/80
Asked in companies
AmazonAdobeJosh Technology Group

You have given an integer array/list ‘arr’ of size ‘N’. You have to split the array into the maximum number of subarrays such that the first and last occurrence of every distinct element lies in a single subarray.

You are required to return the number of maximum subarrays in which the array can be split.

An array ‘C’ is a subarray of array ‘D’ if ‘C’ can be obtained from ‘D’ by deletion of several elements from the beginning and several elements from the end.

For Example:
Let an array ‘arr’ = [2,2,1,1].

In this example, the array can be split like this [2,2], [1,1] in this 
case the first and last occurrence of 2 lies in a first subarray and 
similarly first and the last occurrence of 1 lies in a second 
subarray. 
Problem approach

Step 1) Maintain a vector of pair V that stores the value of the current element and the index of the current element of the array arr[] for all elements in the given array.
Step 2) Sort the vector V.
Step 3) Initialize a variable, say cnt as 1 that stores the minimum number of subarrays required.
Step 4) Traverse the vector V for i in the range [1, N – 1] and perform the following steps:
Step 5) If the index of the ith element in the original array is (1 + index of (i – 1)th element) in the original array, then the two can be grouped together in the same subarray.
Step 6) Otherwise, the two elements need to be in separate subarrays and increment the value of cnt by 1.
Step 7) After completing the above steps, print the value of cnt as the resultant possible breaking of subarrays.

Try solving now
02
Round
Easy
Face to Face
Duration90 Minutes
Interview date21 Sep 2019
Coding problem1

1. Sum root to leaf

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

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

The idea is to do a preorder traversal of the tree. In the preorder traversal, keep track of the value calculated till the current node, let this value be val. For every node, we update the val as val*10 plus node’s data.

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

How do you remove whitespace from the start of a string?

Choose another skill to practice
Similar interview experiences
company logo
SDE - 1
3 rounds | 6 problems
Interviewed by Josh Technology Group
1522 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 6 problems
Interviewed by Josh Technology Group
1028 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 3 problems
Interviewed by Josh Technology Group
1486 views
0 comments
0 upvotes
company logo
SDE - 1
4 rounds | 7 problems
Interviewed by Josh Technology Group
1160 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
2 rounds | 3 problems
Interviewed by BNY Mellon
6365 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
2198 views
0 comments
0 upvotes