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

Software Engineer

Galgotias University
upvote
share-icon
3 rounds | 4 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 6 months
Topics: Data Structures, OOPS, Database, Networking, Low level System Design
Tip
Tip

Tip 1 : Learn By Doing
Tip 2 : Be consistent throughout preparation
Tip 3 : Do atleast one major project

Application process
Where: Campus
Eligibility: 65%
Resume Tip
Resume tip

Tip 1 : Mention only true things.
Tip 2 : Try to mention everything into one page only.

Interview rounds

01
Round
Easy
Online Coding Interview
Duration150 minutes
Interview date28 Oct 2021
Coding problem2

Basically, I got morning shift for the paper and It was around 9AM and as we know TCS provides best when it comes to test platform or any other exams.I gave test smoothly for approx.2.30 hrs and it was completely moderated through camera and you cant move your hand also like you have to use rough then use it on their platform which they provided in test env.

1. Remove Duplicates From String

Moderate
25m average time
0/80
Asked in companies
OracleUnacademySamsung

You are given a string (STR) of length N, consisting of only the lower case English alphabet.

Your task is to remove all the duplicate occurrences of characters in the string.

For Example:
If the given string is:
abcadeecfb

Then after deleting all duplicate occurrences, the string looks like this:
abcdef
Problem approach

Step 1 : Solved using brute force method i.e. two pointers method.
Step 2 : take two pointers i.e l for left and r for right and traverse through string.
Step 3 : Traverse through the string and for every index l check if str[l] is already present on the left side of the current index by looping through r -> 0-l-1 ;
Step 4 : If same character found break the loop. and after this we will print our res string which we made while looping.

Try solving now

2. Ninja And Divisible Array

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

Ninja has been given an array/list ‘ARR’ of even size ‘N’ and an integer ‘K’. Ninja gives his friend a task to divide the given ‘ARR’ into ‘N’/2 pairs such that the sum of each pair should be divisible by ‘K’.

Can you help Ninja to do this task?

For Example :

If ‘ARR’ = [4 5 6 5 7 3] and ‘K’ = 5
Pairs are(4, 6), (5, 5) ,and (7, 3) and the sum of elements of each pair is divisible by ‘K’ i.e 5.
Try solving now
02
Round
Medium
Online Coding Test
Duration60 minutes
Interview date15 Nov 2021
Coding problem2

It consists of 2 question which was to be solved in 1 hr. question was medium level type.

1. The Skyline Problem

Hard
15m average time
85% success
0/120
Asked in companies
GoogleAppleFlipkart

You are given 'N' rectangular buildings in a 2-dimensional city. Your task is to compute the skyline of these buildings, eliminating hidden lines return the skyline formed by these buildings collectively. A city's skyline is the outer contour of the silhouette formed by all the buildings in that city when viewed from a distance. The geometric information of each building is given in the array of buildings where BUILDINGS[i] = [LEFT_i, RIGHT_i, HEIGHT_i]:

-> LEFT_i is the x coordinate of the left edge of the ith building.

-> RIGHT_i is the x coordinate of the right edge of the ith building.

-> HEIGHT_i is the height of the ith building.

You may assume all buildings are perfect rectangles grounded on an absolutely flat surface at height 0.

The skyline should be represented as a list of "key points" sorted by their x-coordinate in the form [[x1, y1], [x2, y2], ...]. Each key point is the left endpoint of some horizontal segment in the skyline except the last point in the list, which always has a y-coordinate 0 and is used to mark the skyline's termination where the rightmost building ends. Any ground between the leftmost and rightmost buildings should be part of the skyline's contour.

Note:
There must be no consecutive horizontal lines of equal height in the output skyline. For instance, [...,[2 3], [4 5], [7 5], [11 5], [12 7],...] is not acceptable; the three lines of height 5 should be merged into one in the final output.

As such: [..., [2 3], [4 5], [12 7],...]. 

Also, the buildings are sorted by a non-decreasing order.

For more clarification see sample case 1.
Try solving now

2. Count Ways To Reach The N-th Stairs

Moderate
30m average time
80% success
0/80
Asked in companies
InfosysTata Consultancy Services (TCS)Amazon

You have been given a number of stairs. Initially, you are at the 0th stair, and you need to reach the Nth stair.


Each time, you can climb either one step or two steps.


You are supposed to return the number of distinct ways you can climb from the 0th step to the Nth step.

Note:

Note: Since the number of ways can be very large, return the answer modulo 1000000007.
Example :
N=3

Example

We can climb one step at a time i.e. {(0, 1) ,(1, 2),(2,3)} or we can climb the first two-step and then one step i.e. {(0,2),(1, 3)} or we can climb first one step and then two step i.e. {(0,1), (1,3)}.
Problem approach

Step 1 : We will create one ans[] and assign 0th and 1st place as 1.
Step 2 : We will take two loops according to the condition and for first loop we will loop through N which is array length.
Step 3 : Now for second loop we will iterate upto i and in that we will calculate result by adding ans[i] with ans[i-j].
Step 4 : Finally, We will return ans[n-1] to get our answer.

Try solving now
03
Round
Easy
HR Round
Duration60 Minutes
Interview date7 Dec 2021
Coding problem0

It was basically technical and HR round Mixed. Interviewer was very well relaxed and gave time to me to think on some questions where i got stucked. In technical: Interviewer will asked all things that you mentioned in your resume. And OOPs concepts with real life example and prepare projects as well.
In Hr: Basic HR questions were asked.

Here's your problem of the day

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

Skill covered: Programming

Which keyword is used for inheritance?

Choose another skill to practice
Similar interview experiences
company logo
SDE - 1
4 rounds | 8 problems
Interviewed by Amazon
7532 views
0 comments
0 upvotes
Analytics Consultant
3 rounds | 10 problems
Interviewed by ZS Associates
779 views
0 comments
0 upvotes
company logo
SDE - Intern
1 rounds | 3 problems
Interviewed by Amazon
2895 views
0 comments
0 upvotes
company logo
SDE - 2
4 rounds | 6 problems
Interviewed by Expedia Group
2226 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Software Engineer
3 rounds | 5 problems
Interviewed by Mindtree
11992 views
7 comments
0 upvotes
company logo
Software Engineer
3 rounds | 7 problems
Interviewed by Optum
7695 views
1 comments
0 upvotes
company logo
Software Engineer
5 rounds | 5 problems
Interviewed by Microsoft
9674 views
1 comments
0 upvotes