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

SDE - 1

GeekyAnts
upvote
share-icon
3 rounds | 4 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 3 Months
Topics: Data Structures, Algorithms, Object Oriented Programming, Operating Systems, Database Management Systems, Software Engineering
Tip
Tip

Tip 1 : Practice at least 250 DSA Questions.
Tip 2 : Do at least 2 good projects.
Tip 3 : Don't fake the resume. Write everything which is true in your resume.
Tip 4 : Computer Science Fundamentals is also very important.

Application process
Where: Linkedin
Eligibility: 7.5 C.G.P.A
Resume Tip
Resume tip

Tip 1 : Have at least 2 good projects on your resume.
Tip 2 : Do not fake the resume.

Interview rounds

01
Round
Easy
Online Coding Interview
Duration90 Minutes
Interview date9 May 2022
Coding problem2

It was online Coding and MCQ round consisting of 2 medium-level coding questions and 18 MCQs.
Timing - Can be given anytime as it was online.

1. Longest Common Subsequence

Moderate
39m average time
0/80
Asked in companies
SlicePayPalAccenture

Given two strings, 'S' and 'T' with lengths 'M' and 'N', find the length of the 'Longest Common Subsequence'.

For a string 'str'(per se) of length K, the subsequences are the strings containing characters in the same relative order as they are present in 'str,' but not necessarily contiguous. Subsequences contain all the strings of length varying from 0 to K.

Example :
Subsequences of string "abc" are:  ""(empty string), a, b, c, ab, bc, ac, abc.
Problem approach

Step 1: Since this is a Dynamic Programming problem So the first approach I have explained is the recursive approach.In which we can break the problem into subproblems.
Step 2: It was not working for all test cases.
Step 3:So I tried to optimize it with Memoization. 
Step 4: It worked for all Test Cases.

Try solving now

2. Ninja and his meetings

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

Ninja has recently started a startup. In his startup, there is only one conference room for a meeting. Ninja receives an array/list ‘MEETINGS’ of back-to-back appointment requests and is debating which ones to accept. Ninja needs a 15-minute break between appointments, and therefore he cannot accept any adjacent requests.

Ninja has to find the highest total booked minutes in the conference room for all meetings.

Note: All meeting timings are multiples of 15.

For example:

‘MEETINGS[]’ = {30, 15, 60}

Let us assume the meeting starts at 12:00 o’clock.
The first meeting takes 30 minutes so after the first meeting time is 12:30.
Then Ninja cannot attend the second meeting which is for 15 minutes because he needs 15 minutes break after every meeting.
After a 15 minutes break, he can attend the next meeting which is for 60 minutes.

So the total booked minutes for the meetings is 30 + 60 = 90.
Problem approach

Step 1: Since it is the Greedy Problem So firstly I created a vector of 3 items start time, end time, and meeting number, and sorted this using comparator based on ascending order of end time.

Step 2: We need a variable to store the answer. Initially, the answer is 1 because the first meeting can always be performed. Make another variable, say limit that keeps track of the ending time of the meeting that was last performed. Initially set limit as the end time of the first meeting.

Start iterating from the second meeting. At every position we have two possibilities:-

If the start time of a meeting is strictly greater than the limit we can perform the meeting. Update the answer. Our new limit is the ending time of the current meeting since it was last performed. Also update the limit. 
If the start time is less than or equal to the limit, skip and move ahead.
This way this code was passing all test cases

Try solving now
02
Round
Easy
Face to Face
Duration30 Minutes
Interview date11 May 2022
Coding problem1

It was 30 minutes interview in which the interviewer firstly ask the introduction question then about the projects and internships and finally the Data Structures and algorithms question and then some general CS Fundamentals questions. The interviewer was very friendly and amazing.

1. Search In A Row Wise And Column Wise Sorted Matrix

Moderate
15m average time
80% success
0/80
Asked in companies
Paytm (One97 Communications Limited)Goldman SachsAcko

You are given an 'N * N' matrix of integers where each row and each column is sorted in increasing order. You are given a target integer 'X'.


Find the position of 'X' in the matrix. If it exists then return the pair {i, j} where 'i' represents the row and 'j' represents the column of the array, otherwise return {-1,-1}


For example:
If the given matrix is:
[ [1, 2, 5],
  [3, 4, 9],
  [6, 7, 10]] 
We have to find the position of 4. We will return {1,1} since A[1][1] = 4.
Problem approach

Step1: I first told him the brute force which is direct for this problem, but of course, he was not satisfied.
Step 2: We map the indices of matrix elements to a 1D array as follows : 
If we copy the elements of a matrix (say ‘MAT’) to an array (say ‘ARR’) in a row-wise manner, then the element ‘MAT[i][j]' is equal to ‘ARR[N*i+j]’, where ‘N’ denotes the number of columns in ‘MAT’.
Similarly, converting ‘ARR’ back to ‘MAT’, the element ‘ARR[i]’ is equal to ‘MAT[i/N][i%N]’ as ‘ARR’ contains M*N elements, so ‘rowNum’ is equal to i/N and ‘column' is equal to i%N.
Step3: After this approach he was satisfied.

Try solving now
03
Round
Easy
HR Round
Duration20 Minutes
Interview date13 May 2022
Coding problem1

It was a normal HR discussion round in which HR asked me about some general questions and then he told me at the end that I got selected.

1. Basic HR questions

He asked some HR Questions.

Problem approach

Tip 1 : In this round communication is very important.
Tip 2 : Doing the top 20 HR Questions from any website is sufficient for this round.

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 the purpose of the < title > tag in HTML?

Choose another skill to practice
Similar interview experiences
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by OYO
2897 views
0 comments
0 upvotes
SDE - 1
3 rounds | 3 problems
Interviewed by GeekyAnts
2087 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 9 problems
Interviewed by Salesforce
2023 views
0 comments
0 upvotes
company logo
System Engineer
2 rounds | 2 problems
Interviewed by Tata Consultancy Services (TCS)
1793 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
1 rounds | 2 problems
Interviewed by Tata Consultancy Services (TCS)
0 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 4 problems
Interviewed by Tata Consultancy Services (TCS)
6338 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 3 problems
Interviewed by BNY Mellon
5575 views
3 comments
0 upvotes