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 | 6 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 3 months
Topics: Data Structures, Algorithms, System Design, Aptitude, OOPS
Tip
Tip

Tip 1 : Must do Previously asked Interviews as well as Online Test Questions.

Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.

Tip 3 : Do at least 2 good projects and you must know every bit of them.


 

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

Tip 1 : Be very specific. Write out important stuff only if you applying for a tech job. No one's going to see your dance/acting skills while interviewing you.

Tip 2 : If you have mentioned your projects, make sure you add your source code's link/GitHub repo link as a hyperlink to it. That's very important, it helps the interviewer know that you have done this project and you're not faking it.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration45 minutes
Interview date2 Feb 2022
Coding problem2

Online coding round with 2 coding questions

1. Level Order Traversal

Easy
15m average time
85% success
0/40
Asked in companies
FacebookMcAfeeOYO

You have been given a Binary Tree of integers. You are supposed to return the level order traversal of the given tree.

For example:
For the given binary tree

Example

The level order traversal will be {1,2,3,4,5,6,7}.
Try solving now

2. Find LCA - Lowest Common Ancestor

Hard
40m average time
70% success
0/120
Asked in companies
AmazonDell TechnologiesDeutsche Bank

The lowest common ancestor (LCA) is a concept in graph theory and computer science.

Let ‘T’ be a rooted tree with ‘N’ nodes. The lowest common ancestor is defined between two nodes, ‘u’ and ‘v’, as the lowest node in ‘T’ that has both ‘u’ and ‘v’ as descendants (where we allow a node to be a descendant of itself). - Wikipedia

For the given tree, The LCA of nodes 5 and 8 will be node 2, as node 2 is the first node that lies in the path from node 5 to root node 1 and from node 8 to root node 1.

Path from node 5 to root node looks like 5 → 2 → 1.

Path from node 8 to root node looks like 8 → 6 → 2 → 1.

Since 2 is the first node that lies in both paths. Hence LCA will be 2.

Given any two nodes ‘u’ and ‘v’, find the LCA for the two nodes in the given Tree ‘T’.

Note: For each test case, the tree is rooted at node 1.

Try solving now
02
Round
Medium
Face to Face
Duration40 minutes
Interview date4 Feb 2022
Coding problem2

It was an onsite face to face technical round where I was asked 2 coding questions.
It lasted for 40-50 minutes.

1. Maximum Subarray Sum Queries

Hard
45m average time
55% success
0/120
Asked in companies
GrofersFreshworksShareChat

Given an array of ‘N’ integers and ‘Q’ queries. The query is defined as below :-

Given 2 integers ‘l’ and ‘r’ (‘l’ >= 0 and ‘r’ < N) find the maximum subarray sum between ‘l’ to ‘r’ (Inclusive).

Query( ‘l’ ,’r’) = max(arr[i] + arr[i+1] +...arr[j].( i >= ‘l’ and j <= ‘r’)

Try solving now

2. Rotting Oranges

Moderate
20m average time
78% success
0/80
Asked in companies
Samsung R&D InstituteSalesforceSamsung

You have been given a grid containing some oranges. Each cell of this grid has one of the three integers values:

  • Value 0 - representing an empty cell.
  • Value 1 - representing a fresh orange.
  • Value 2 - representing a rotten orange.
  • Every second, any fresh orange that is adjacent(4-directionally) to a rotten orange becomes rotten.

    Your task is to find out the minimum time after which no cell has a fresh orange. If it's impossible to rot all the fresh oranges then print -1.

    Note:
    1. The grid has 0-based indexing.
    2. A rotten orange can affect the adjacent oranges 4 directionally i.e. Up, Down, Left, Right.
    
    Try solving now
    03
    Round
    Medium
    Face to Face
    Duration30 minutes
    Interview date5 Feb 2022
    Coding problem2

    This round had 2 coding questions and I was expected to give the optimal approach for both the questions with proper time and space complexities 

    1. Reverse Linked List

    Moderate
    15m average time
    85% success
    0/80
    Asked in companies
    WalmartHCL TechnologiesInfo Edge India (Naukri.com)

    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?
    
    Try solving now

    2. Next Permutation

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

    You have been given a permutation of ‘N’ integers. A sequence of ‘N’ integers is called a permutation if it contains all integers from 1 to ‘N’ exactly once. Your task is to rearrange the numbers and generate the lexicographically next greater permutation.

    To determine which of the two permutations is lexicographically smaller, we compare their first elements of both permutations. If they are equal — compare the second, and so on. If we have two permutations X and Y, then X is lexicographically smaller if X[i] < Y[i], where ‘i’ is the first index in which the permutations X and Y differ.

    For example, [2, 1, 3, 4] is lexicographically smaller than [2, 1, 4, 3].

    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 - Intern
    6 rounds | 14 problems
    Interviewed by Josh Technology Group
    5584 views
    0 comments
    0 upvotes
    company logo
    SDE - Intern
    5 rounds | 6 problems
    Interviewed by Josh Technology Group
    3263 views
    0 comments
    0 upvotes
    company logo
    SDE - Intern
    2 rounds | 4 problems
    Interviewed by Josh Technology Group
    1140 views
    1 comments
    0 upvotes
    company logo
    SDE - Intern
    7 rounds | 7 problems
    Interviewed by Josh Technology Group
    1137 views
    0 comments
    0 upvotes
    Companies with similar interview experiences
    company logo
    SDE - Intern
    2 rounds | 4 problems
    Interviewed by Arcesium
    3738 views
    0 comments
    0 upvotes
    company logo
    SDE - Intern
    3 rounds | 5 problems
    Interviewed by Arcesium
    2683 views
    0 comments
    0 upvotes
    company logo
    SDE - Intern
    3 rounds | 5 problems
    Interviewed by BNY Mellon
    2347 views
    0 comments
    0 upvotes