Nagaaro interview experience Real time questions & tips from candidates to crack your interview

SDE - 1

Nagaaro
upvote
share-icon
3 rounds | 6 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 18 Months
Topics: C++, data structures and algorithms, database management system, sql, machine learning, operating systems, oops
Tip
Tip

Tip 1 : dont think you are from lower branch
Tip 2 : just strive hard and work hard
Tip 3 : practise whatever you are doing as much as you can

Application process
Where: Campus
Eligibility: Above 6.5 gpa
Resume Tip
Resume tip

Tip 1 : be short and precise
Tip 2 : dont write false information be thorough with whatever you have done in life

Interview rounds

01
Round
Hard
Online Coding Interview
Duration90 minute
Interview date13 Oct 2020
Coding problem3

The test comprises of aptitude question in 1 half and aptitude question in 2 half then there is a coding round with 3 question and one was easy one was of medium and one was from hard, a deep understanding of question was a must

1. Pair Sum

Easy
15m average time
90% success
0/40
Asked in companies
OpenTextPhone PeGoogle

You are given an integer array 'ARR' of size 'N' and an integer 'S'. Your task is to return the list of all pairs of elements such that each sum of elements of each pair equals 'S'.

Note:

Each pair should be sorted i.e the first value should be less than or equals to the second value. 

Return the list of pairs sorted in non-decreasing order of their first value. In case if two pairs have the same first value, the pair with a smaller second value should come first.
Try solving now

2. Check If One String Is A Rotation Of Another String

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

You are given two Strings 'P' and 'Q' of equal length.


Your task is to return 1 if String 'P' can be converted into String 'Q' by cyclically rotating it to the right any number of times ( Possibly Zero ), else return 0.


A cyclic rotation to the right on String 'A' consists of taking String 'A' and moving the rightmost character to the leftmost position. For example, if 'A' = "pqrst", then it will be "tpqrs" after one cyclic rotation on 'A'.


For example:
Consider the two strings 'P' = "abfyg" and 'Q' = "gabfy" 

If we cyclically rotate String 'P' to the right once. The resulting string P becomes "gabfy" which is equal to String 'Q'. 

Therefore it is possible to convert String 'P' to String 'Q'.
Try solving now

3. Height of the Binary Tree

Moderate
10m average time
90% success
0/80
Asked in companies
Morgan StanleyAmazonSymphony Talent, LLC

You have been given the Inorder Traversal and Level Order Traversal of a Binary Tree of integers. Your task is to calculate the height of the Binary tree without constructing it.

The height of the binary tree is the number of edges in the longest path from the root node to any leaf node in the tree. In case the tree has only one node, the height is taken to be 0.

Try solving now
02
Round
Medium
Face to Face
Duration48 minutes
Interview date14 Oct 2020
Coding problem2

This round was the most difficult round the interviewer was quite helpful and helped me throughout the interview

1. Optimize The Code

Moderate
30m average time
60% success
0/80
Asked in companies
UberCarXNagaaro

While practicing questions on data structures, Ninja faced a problem and was not able to pass all the test cases of a question as the time complexity of the code Ninja made was very large. Ninja asked you for help. You are given a snippet of code and you have to optimize the code.

Pseudocode:

RES = 0
FOR(i -> A to B) {
    FOR(j -> C to D) {
        ADD (i ^ j) to RES;
    }
}
PRINT(RES)

You are given the integers ‘A’, ‘B’, ‘C’, and ‘D’, and ‘^’ represents the bitwise XOR operator. As the result can be large print the result modulo 1000000007.

Try solving now

2. Maximum Subarray Sum

Moderate
35m average time
81% success
0/80
Asked in companies
MicrosoftAccentureSAP Labs

You are given an array 'arr' of length 'n', consisting of integers.


A subarray is a contiguous segment of an array. In other words, a subarray can be formed by removing 0 or more integers from the beginning and 0 or more integers from the end of an array.


Find the sum of the subarray (including empty subarray) having maximum sum among all subarrays.


The sum of an empty subarray is 0.


Example :
Input: 'arr' = [1, 2, 7, -4, 3, 2, -10, 9, 1]

Output: 11

Explanation: The subarray yielding the maximum sum is [1, 2, 7, -4, 3, 2].
Try solving now
03
Round
Easy
HR Round
Duration20 Minutes
Interview date14 Oct 2020
Coding problem1

1. Basic HR Questions

Are you a team player?

Where do you see yourself in 3 years?

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 create a function in JavaScript?

Choose another skill to practice
Start a Discussion
Similar interview experiences
company logo
SDE - 1
3 rounds | 3 problems
Interviewed by Nagaaro
0 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Nagaaro
607 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 4 problems
Interviewed by Nagaaro
852 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 4 problems
Interviewed by Nagaaro
444 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
5 rounds | 12 problems
Interviewed by Amazon
106024 views
24 comments
0 upvotes
company logo
SDE - 1
4 rounds | 5 problems
Interviewed by Microsoft
50692 views
5 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Amazon
31561 views
6 comments
0 upvotes