Code360 powered by Coding Ninjas X Naukri.com. Code360 powered by Coding Ninjas X Naukri.com
DeltaX interview experience Real time questions & tips from candidates to crack your interview

Associate Software Engineer

DeltaX
upvote
share-icon
3 rounds | 6 Coding problems

Interview preparation journey

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

Tip 1 : DSA (Practice at least 250 Questions)
Tip 2 : OOPS
Tip 3 : Do atleast two projects

Application process
Where: Campus
Eligibility: 60% in Graduation
Resume Tip
Resume tip

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

Interview rounds

01
Round
Easy
Online Coding Interview
Duration60 minutes
Interview date12 Oct 2022
Coding problem3

1. DBMS Question

Which join is to be used between two tables A and B when the resultant table needs rows from A and B that matches the condition and rows from A that does not match the condition?
 

Problem approach

Tip 1 : Practice DBMS from internet

2. OS Questions

In Operating Systems, which of the following is/are CPU scheduling algorithms?
a) Priority
b) Round Robin
c) Shortest Job First
d) All of the mentioned

3. Reverse Linked List

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

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
02
Round
Medium
Online Coding Test
Duration120 minutes
Interview date12 Oct 2022
Coding problem2

The coding test consisted of some questions all of which had to be correct to qualify for the next round.

1. PRETTY JSON

Easy
10m average time
90% success
0/40
Asked in companies
FacebookDeltaXD.E.Shaw

You are given a string 'STR' representing JSON object. Return an array of strings denoting JSON objects with proper indentation.

Rules for proper indentation:
1. Every inner brace should increase one indentation to the following lines.
2. Every close brace should decrease one indentation to the same line and the following lines.
3. Every ‘,’ will mean a separate line.
4. The indents can be increased with an additional 4 spaces or ‘/t’.
Example:
Let the input be: "{A:"B",C:{D:"E",F:{G:"H",I:"J"}}}"

Then we return the following array of strings: 
{ 
    A:"B",
    C: 
    { 
        D:"E",
        F: 
        { 
            G:"H",
            I:"J"
        } 
    } 
}

Note that for every new brace we are putting an additional 4 spaces or \t.
Note:
1. [] and {} are only acceptable braces in this case.
Problem approach

The key idea in solving this problem is to simply iterate through the given string and construct our array of strings. We need to take care of the following points:

Whenever we encounter some kind of opening brace, we add 4 spaces to all the below lines in the beginning
Whenever we encounter some kind of closing brace, we delete 4 spaces to all the below lines from the beginning
When we encounter a ‘,’ we change the line.
In the case of a colon, we do not change the line unless we have a brace right next to it.

Below is the detailed algorithm:

We make an array of strings ‘RESULT’ to store the result.
We maintain a variable ‘brace’ which contains the number of braces encountered till now.
Initially, it is 1.
Now we iterate through the string and check for the following cases:


If the current character is an opening brace and is the first opening brace, we just make a new row in the result array and increment the brace by 1.If it is not a first opening brace, we make a new row and add ‘BRACE’ number of ‘\t’ or 4 spaces in the string and add a new line.
If the current character is a closing brace, we first decrease ‘BRACE’ by 1 and then add a brace number of ‘\t’ characters.
If we have a ‘,’ we simply add a new line. But we need to take care of the corner case that if a ‘,’ is followed by a brace, we need not do anything as the new line operation will be taken care of by the brace.
If we have a ‘:’ we simply print it unless we have a colon followed by an opening brace in which we make a new line and do the same as we did in point1.
Finally, we return the ‘RESULT’.


Do check your code for the following corner cases:

} followed by ,
} or ] followed by } or ]
{ or [ followed by { or [

Try solving now

2. Reverse the first “K” elements of a queue

Easy
20m average time
80% success
0/40
Asked in companies
Goldman SachsCventDeltaX

You have been given a queue and an integer ‘K’. You need to reverse the order of the first ‘K’ elements of the queue.

Note :
The relative order of other elements should be maintained.
For example :
If Q = [ 10, 20, 30, 40, 50, 60, 70, 80, 90, 100 ]
and ‘K’ = 4 
then the output will be
Q = [ 40, 30, 20, 10, 50, 60, 70, 80, 90, 100]
Try solving now
03
Round
Easy
Video Call
Duration90 minutes
Interview date12 Oct 2022
Coding problem1

In round 3,they asked me to explain the programs that i have solved in round 2 and some questions regarding OOPS and DBMS

1. Capture region

Moderate
10m average time
90% success
0/80
Asked in companies
HSBCGoogleMicrosoft

You are given a matrix having ‘N’ rows and ‘M’ columns. Each cell of the matrix is either ‘X’ or ‘O’. You need to flip all those regions of ‘O’ which are surrounded by ‘X’ i.e. you need to change all ‘O’s which are present in the region to ‘X’.

Note
1. Surrounded regions shouldn’t be on the border, which means that any 'O' on the border of the matrix is not flipped to 'X'. 
2. Any ‘O’ or group of connected ‘O’ are said to be surrounded by ‘X’ when all cells touching the boundary of the group of ‘O’ must contain ‘X’.
For example

alt text

Problem approach

The algorithm is quite simple: Use BFS starting from 'O's on the boundary and mark them as 'B', then iterate over the whole board and mark 'O' as 'X' and 'B' as 'O'.

Try solving now

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

What does ROLLBACK do in DBMS?

Join the Discussion
1 reply
profile
9 months ago
Comment Removed
0 upvotes
0 replies
Reply
Similar interview experiences
Product Intern
6 rounds | 9 problems
Interviewed by Squadstack
0 views
0 comments
0 upvotes
Business Technology Analyst
4 rounds | 5 problems
Interviewed by Squadstack
2296 views
0 comments
0 upvotes
SDE - 1
3 rounds | 10 problems
Interviewed by Sterlite Technologies Limited
2148 views
0 comments
0 upvotes
Product Engineer
3 rounds | 5 problems
Interviewed by Squadstack
1426 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Associate Software Engineer
2 rounds | 3 problems
Interviewed by Accenture
1646 views
0 comments
0 upvotes
company logo
Associate Software Engineer
2 rounds | 3 problems
Interviewed by CIS - Cyber Infrastructure
616 views
0 comments
0 upvotes
company logo
Associate Software Engineer
2 rounds | 6 problems
Interviewed by Tata Consultancy Services (TCS)
820 views
0 comments
0 upvotes