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

SDE - 1

Tata1mg
upvote
share-icon
3 rounds | 3 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 6 months
Topics: Data Structures, OOPS, Computer Networks, Design, HTTP Ports, Puzzles
Tip
Tip

Tip 1 : DSA should be very good
Tip 2 : Mention only those projects which you know in depth
Tip 3 : Get good knowledge of Networks.

Application process
Where: Linkedin
Resume Tip
Resume tip

Tip 1 : Good Projects
Tip 2 : DSA level should be good

Interview rounds

01
Round
Hard
Online Coding Interview
Duration60 minutes
Interview date10 Oct 2022
Coding problem1

DSA Question was asked, One Hard question was there and I completed that with edge cases on time and then discussion on Projects

1. Median of two sorted arrays

Hard
25m average time
65% success
0/120
Asked in companies
GrabAtlassianAmazon

Given two sorted arrays 'a' and 'b' of size 'n' and 'm' respectively.


Find the median of the two sorted arrays.


Median is defined as the middle value of a sorted list of numbers. In case the length of list is even, median is the average of the two middle elements.


The expected time complexity is O(min(logn, logm)), where 'n' and 'm' are the sizes of arrays 'a' and 'b', respectively, and the expected space complexity is O(1).


Example:
Input: 'a' = [2, 4, 6] and 'b' = [1, 3, 5]

Output: 3.5

Explanation: The array after merging 'a' and 'b' will be { 1, 2, 3, 4, 5, 6 }. Here two medians are 3 and 4. So the median will be the average of 3 and 4, which is 3.5.
Problem approach

1. Told all approaches starting from Brute Force.
2. Calculating size and then moving to optimized approach and then he told to do in O(log(m+n)) and did that also

Try solving now
02
Round
Medium
Online Coding Interview
Duration60 minutes
Interview date12 Oct 2022
Coding problem1

1. Puzzle was asked 

1. Puzzle

Measure a time of 45 minutes by burning two ropes each of which takes 1 hour to burn out.

The ropes are of same length but none of the two burns at a uniform rate throughout the length. That's why you cannot just measure a point at three-fourth of the length of a rope and start burning at that point to measure 45 minutes.

Only saving grace is the allowance that one or both of the ropes can be burned simultaneously at multiple points.

Problem approach

Tip 1 : Solve all puzzles on CodeStudio
Tip 2 : Check GFG puzzles also once
Tip 3 : Try to think more logical

03
Round
Easy
Telephonic
Duration45 minutes
Interview date6 Nov 2022
Coding problem1

1 DSA Question of Medium level was asked and I fumbled up in test cases and that's why took a lil bit more time and got rejected in last round. :(

1. 3Sum

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

You are given an array/list ARR consisting of N integers. Your task is to find all the distinct triplets present in the array which adds up to a given number K.

An array is said to have a triplet {ARR[i], ARR[j], ARR[k]} with sum = 'K' if there exists three indices i, j and k such that i!=j, j!=k and i!=j and ARR[i] + ARR[j] + ARR[k] = 'K'.

Note:
1. You can return the list of values in any order. For example, if a valid triplet is {1, 2, -3}, then {2, -3, 1}, {-3, 2, 1} etc is also valid triplet. Also, the ordering of different triplets can be random i.e if there are more than one valid triplets, you can return them in any order.
2. The elements in the array need not be distinct.
3. If no such triplet is present in the array, then return an empty list, and the output printed for such a test case will be "-1".
Problem approach

1. Explained in very detail about Problem
2. A bit variation of 3 sum so got fumbled up and were not able to solve in that time and took 4-5 mints more

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

What is recursion?

Choose another skill to practice
Similar interview experiences
SDE - 1
4 rounds | 8 problems
Interviewed by Tata1mg
1267 views
1 comments
0 upvotes
SDE - 1
3 rounds | 5 problems
Interviewed by Tata1mg
1311 views
0 comments
0 upvotes
SDE - 1
1 rounds | 3 problems
Interviewed by Tata1mg
1636 views
1 comments
0 upvotes
SDE - 1
4 rounds | 12 problems
Interviewed by Tata1mg
0 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
5 rounds | 12 problems
Interviewed by Amazon
114578 views
24 comments
0 upvotes
company logo
SDE - 1
4 rounds | 5 problems
Interviewed by Microsoft
57824 views
5 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Amazon
34960 views
7 comments
0 upvotes