Gateway Group of Companies interview experience Real time questions & tips from candidates to crack your interview

SDE - 1

Gateway Group of Companies
upvote
share-icon
2 rounds | 4 Coding problems

Interview preparation journey

expand-icon
Journey
Before cracking any interview, one needs to strengthen their basics. So, I started practicing DSA and reading all the vital topics and subjects such as DBMS, DSA, Networking, and Operating Systems. After preparing the top 100 or 150 questions on each topic, I prepared all my projects and my resume, which was the most important step. During my 4-year journey in college, I focused on DSA, resume building, and core fundamentals.
Application story
This company visited to my campus for the placement. We just had to upload resume and fill all details in the form. After the online test, around 15 candidates were selected for interviews.
Why selected/rejected for the role?
I was able to clear all the rounds. I believe it was because I answered almost all the questions correctly, gave quick responses, had good projects listed on my resume, and had some knowledge about the company. I was able to impress the interviewer.
Preparation
Duration: 2 months
Topics: C++, OOPs, Pointers, Dynamic programming, Recursion
Tip
Tip

Tip 1 : Practice at least (easy and medium questions from leetcode under (Top Interview Questions)) and all the questions from GFG under (must do coding questions for interviews)).
Tip 2 : Don't learn each and every question you solved but try to solve questions in a way that you can solve its variation during interviews.
Tip 3 : Do one project (one is enough) which you can explain with full technical details (why you used this technology, and all logic you applied in implementation).

Application process
Where: Campus
Eligibility: 7 CGPA
Resume Tip
Resume tip

Tip 1: Have at least one project that you have made yourself, and ensure you know all the technical questions related to that project (I believe the project domain hardly matters, whether it’s web development, Android, or ML/AI).

Tip 2: Include only those skills in your resume that the company requires:

  1. Focus on skills the company needs (e.g., if you know the company doesn't require knowledge of networking, avoid including it unnecessarily, especially if you are not confident in it).
  2. For on-campus internships, resume shortlisting is relatively easy, so don't add anything unnecessary that might cause you trouble during the interview.

Interview rounds

01
Round
Hard
Online Coding Test
Duration120 minutes
Interview date7 Feb 2023
Coding problem3

Three coding questions: They were conducted from 1:30 to 3:00 PM. The coding platform was very good (as it had auto-indentation and auto-completion of brackets) with the camera on.

1. Share The Story

Hard
25m average time
80% success
0/120
Asked in company
Google inc

When a person knows a story and meets someone, he immediately shares the story at that timeStamp. Initially, only person 1 knows the story. You are given a list of meetings between people in the array ‘arr’ where each meeting is in the form of (person1, person2, timeStamp) where ‘person1‘ will tell the story to ‘person2’ at time ‘timeStamp’. Your task is to construct the list of people in sorted order who will know the story at the end.

For example:
Consider ‘arr’ = [(1, 2, 100), (3, 4, 200), (1, 3, 300), (2, 5, 400)] 

Person 1 will tell the story to person 2  at 100th timeStamp.
Person 1 will tell the story to person 3 at 300th timeStamp.
Person 2 will tell the story to person 5 at 400th timeStamp.
Person 4 will not be able to learn the story. 

So the output will be [1, 2, 3, 5].
Try solving now

2. Best Time to Buy and Sell

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

You are given an array(PRICES) of stock prices for N consecutive days. Your task is to find the maximum profit that you can make by completing as many transactions as you like, where a transaction denotes buying one and selling one share of the stock.

Note:

You must sell the stock before you buy it again.
Problem approach

First, I found that this can easily be done using the brute force approach of using a hashmap to store all the numbers (from the minimum value in the input range to the maximum value in the input range) along with their frequency of appearance. Then, I would run a loop again for each query range and output the values that are greater than k. In this solution, 50% of the test cases resulted in TLE.

Then I realized that I do not need to run the loop for every range. Instead, I should use an array of size 100,000 and:

  • First, mark the start and end of each range in one loop.
  • Then, fill the frequencies for the elements in between by looping from the minimum to the maximum value in my range.
  • For each query, I can then get my answer in constant time by subtracting the frequency of the range elements from the frequency array.
Try solving now

3. Spiral Order Traversal of a Binary Tree

Easy
20m average time
75% success
0/40
Asked in companies
SliceOYOMicrosoft

You have been given a binary tree of 'N' nodes. Print the Spiral Order traversal of this binary tree.

For example
For the given binary tree [1, 2, 3, -1, -1, 4, 5, -1, -1, -1, -1]
    1
   / \
  2   3
     / \
    4   5

Output: 1 3 2 4 5
Try solving now
02
Round
Easy
HR Round
Duration40 minutes
Interview date7 Feb 2023
Coding problem1

1. Basic HR Questions

Introduce yourself.

What do you know about the work culture here?

Tell me about your family background?

What do you think are your strengths and weaknesses?

Problem approach

Tip 1 : The HR person is generally a very high experienced person so never tell him anything false just to impress him.
Tip 2 : Try to include only that things in your introduction where you want to drive your discussion further.
Tip 3 : Try to show some interest in your growth and the work that they are offering you and in what sense they can help 
you build your skills better.

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
company logo
SDE - 1
4 rounds | 8 problems
Interviewed by Amazon
8519 views
0 comments
0 upvotes
Analytics Consultant
3 rounds | 10 problems
Interviewed by ZS
908 views
0 comments
0 upvotes
company logo
SDE - Intern
1 rounds | 3 problems
Interviewed by Amazon
3320 views
0 comments
0 upvotes
company logo
SDE - 2
4 rounds | 6 problems
Interviewed by Expedia Group
2581 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
5 rounds | 12 problems
Interviewed by Amazon
114579 views
24 comments
0 upvotes
company logo
SDE - 1
4 rounds | 5 problems
Interviewed by Microsoft
57825 views
5 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Amazon
34961 views
7 comments
0 upvotes