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

SDE - 1

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

Interview preparation journey

expand-icon
Journey
I received that opportunity through on-campus placement. I cleared the coding round but unfortunately got rejected in the technical rounds. They were looking for code with lower time and space complexity. Try to reduce complexity and write code with comments.
Why selected/rejected for the role?
Unfortunately, I was rejected in Technical Rounds. They wanted less complexity and a Space Complexity Code. Try to reduce the complexity and write code with comments.
Preparation
Duration: 6 Months
Topics: Data Structures & Algorithms, Operating System, Object-Oriented Programming System, DBMS, CN
Tip
Tip

Tip 1: Do revise your projects.

Tip 2: Prepare DSA well, and I recommend Coding Ninjas for interview preparation.

Tip 3: Be confident and relaxed during the interview.

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

Tip 1: Make your resume short and try to keep it to one page only. Mention all the skills that you are confident in.

Tip 2: Do not include false information on your resume.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration50 Minutes
Interview date23 Aug 2021
Coding problem2

In that round, 60 Technical questions like output-based and oops-based and some of them are SQL (Easy-Medium) + 10 Aptitude(Easy). There are negative markings for MCQs. If you clear this round then only you get the link for the next round.

1. OOPS Questions

  • What is Inheritance in OOP, and how does it promote code reuse and maintainability? (Learn)
  • Explain the concepts of Encapsulation and Abstraction in OOP, and provide an example of how they can be used in a real-world scenario.
  • What is the Diamond Problem in the context of multiple inheritance? How can it be resolved in different programming languages? (Learn)
  • Compare and contrast the terms 'method overloading' and 'method overriding' in the context of OOP. Provide examples to illustrate the differences. (Learn)
  • Discuss the advantages of using interfaces in OOP, and how they enable better design and flexibility in software development. Provide an example of a situation where interfaces would be more suitable than inheritance.

2. DBMS

  • Explain the difference between a primary key and a foreign key in a relational database. Provide an example scenario to illustrate their usage. (Learn)
  • What is the ACID (Atomicity, Consistency, Isolation, Durability) principle in database transactions? How does it ensure data integrity and reliability? (Learn)
  • Describe the differences between a SQL JOIN and a SUBQUERY. Provide an example of when you would use each and the advantages of one approach over the other. (Learn)
  • Discuss the concepts of normalization and denormalization in the context of database design. When would you choose to denormalize a database, and what are the potential trade-offs?
  • Explain the importance of indexing in a database. What types of indexes are commonly used, and how do they impact query performance? Provide an example of a scenario where indexing would significantly improve a query's execution time.
02
Round
Medium
Online Coding Test
Duration85 Minutes
Interview date23 Aug 2021
Coding problem2

This round consists of three coding questions and one output-based question (medium level). You have to solve them within the given time and space complexity, with proper commenting, to be shortlisted.

1. Remove duplicates from a sorted Doubly Linked List

Easy
0/40
Asked in companies
AdobeAppleAmazon

A doubly-linked list is a data structure that consists of sequentially linked nodes, and the nodes have reference to both the previous and the next nodes in the sequence of nodes.


You are given a sorted doubly linked list of size 'n'.


Remove all the duplicate nodes present in the linked list.


Example :
Input: Linked List: 1 <-> 2 <-> 2 <-> 2 <-> 3

Output: Modified Linked List: 1 <-> 2 <-> 3

Explanation: We will delete the duplicate values ‘2’ present in the linked list.


Problem approach

Simply iterate the Linked List check for duplicate nodes and delete them.

Try solving now

2. Minimum Depth Of Binary Tree

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

You have been given a Binary Tree of integers, find the minimum depth of this Binary Tree. The minimum depth of a Binary Tree is the number of nodes along the shortest path from the root node down to the nearest leaf node.

Note:
A leaf is a node with no children.
For example:
For the given binary tree

alt text

Output: 2
The shortest path is from root node 1 to leaf node 2 which contains 2 nodes in the path. Hence, the minimum depth is 2.
Problem approach

By using BFS, I was able to solve this problem.

Try solving now
03
Round
Hard
Face to Face
Duration70 Minutes
Interview date26 Aug 2021
Coding problem2

They were mainly focused on DSA, Trees and Linked list questions but were unfortunately rejected in Technical Rounds. They wanted less complexity and a Space Complexity Code. Try to reduce the complexity and write code with comments.

1. Collect Leaves

Moderate
20m average time
80% success
0/80
Asked in companies
FacebookeBayErnst & Young (EY)

You are given a binary tree with ‘N’ nodes. Each node has an integer value associated with it. Your task is to print the leaf nodes and then remove these leaf nodes. Now, print the new leaf nodes and repeat the process until the tree becomes empty.

Note:
You don’t require to remove the leaf nodes. Just print the values in the required order.

The leaf nodes must be printed in a left to right order.
Try solving now

2. Asteroid Collision

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

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

Using the stack data structure enabled me to solve this problem. Because I had already solved this problem, I was able to solve it again.

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
1870 views
0 comments
0 upvotes
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 | 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