Code360 powered by Coding Ninjas X Naukri.com. Code360 powered by Coding Ninjas X Naukri.com
Grofers interview experience Real time questions & tips from candidates to crack your interview

SDE - Intern

Grofers
upvote
share-icon
2 rounds | 4 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 1 Month
Topics: Data Structures, Algorithms, System Design, Python, Django Rest Framework
Tip
Tip

Tip 1 : You should have good understanding of the projects that made.
Tip 2 : Have a basic understanding of system design.

Application process
Where: Other
Eligibility: NO
Resume Tip
Resume tip

Tip 1 : Mention at least 2 good projects and 1-2 average projects.
Tip 2 : Avoid spelling and grammar mistakes.

Interview rounds

01
Round
Medium
Face to Face
Duration45 Minutes
Interview date27 Jan 2022
Coding problem1

This round was scheduled with the Engineering manager of the team for which they are hiring me, we started with the introduction than he asked me to explain about one of my projects in detail, I explained all the functionalities of that project and why I have used that particular technology to implement that feature. Than he gave me a system design/problem solving question that is the variant of design parking lot, we discussed that problem after that he asked me to tell about my previous internship experience and tech stack that I have used there and also asked to the explain the latest task on which I'm working. After that he asked me few things about jenkins, kubernetes and django rest frame work. At last he told me to make a project with python django rest framework which will be reviewed in the next interview round.

1. System Design Question

Variant of design parking lot.

02
Round
Medium
Face to Face
Duration90 Minutes
Interview date3 Feb 2022
Coding problem3

This round was scheduled with the panel of 2 interviewers both were SDE-2, we started with the introduction than he jumbed to dsa questions, They asked 3 questions and I have to write the working code that will pass all the test cases of the problem than I also have to explain their time and space complexity. Interviewer was friendly I got stuck in one question he helped me and explained me why that test case is failing and gave me a hint for that. After dsa quesions they moved on to my project review and django related questions. I showed my project that I made using python and django. They asked some questions related to django and 2-3 model queries of it. That's all than he asked for any questions that I might have for him.

1. Triplets with Given Sum

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

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".
Try solving now

2. Validate BST

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

You have been given a binary tree of integers with N number of nodes. Your task is to check if that input tree is a BST (Binary Search Tree) or not.

A binary search tree (BST) is a binary tree data structure which has the following properties.

• The left subtree of a node contains only nodes with data less than the node’s data.
• The right subtree of a node contains only nodes with data greater than the node’s data.
• Both the left and right subtrees must also be binary search trees.
Example :

BST1

Answer :

Level 1: 

All the nodes in the left subtree of 4 (2, 1, 3) are smaller 
than 4, all the nodes in the right subtree of the 4 (5) are 
larger than 4.

Level 2 :

For node 2:
All the nodes in the left subtree of 2 (1) are smaller than 
2, all the nodes in the right subtree of the 2 (3) are larger than 2.
For node 5:
The left and right subtrees for node 5 are empty.

Level 3:

For node 1:
The left and right subtrees for node 1 are empty.
For node 3:
The left and right subtrees for node 3 are empty.

Because all the nodes follow the property of a binary search tree, the above tree is a binary search tree.
Try solving now

3. Maximum Subarray Sum Queries

Hard
45m average time
55% success
0/120
Asked in companies
GoogleShareChatTata Consultancy Services (TCS)

Given an array of ‘N’ integers and ‘Q’ queries. The query is defined as below :-

Given 2 integers ‘l’ and ‘r’ (‘l’ >= 0 and ‘r’ < N) find the maximum subarray sum between ‘l’ to ‘r’ (Inclusive).

Query( ‘l’ ,’r’) = max(arr[i] + arr[i+1] +...arr[j].( i >= ‘l’ and j <= ‘r’)

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

How do you write a single-line comment in C++?

Choose another skill to practice
Start a Discussion
Similar interview experiences
company logo
SDE - Intern
3 rounds | 4 problems
Interviewed by Grofers
975 views
1 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Grofers
930 views
0 comments
0 upvotes
company logo
Data Analyst
4 rounds | 8 problems
Interviewed by Grofers
453 views
0 comments
0 upvotes
Product Engineer
3 rounds | 5 problems
Interviewed by Squadstack
1489 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - Intern
3 rounds | 6 problems
Interviewed by Amazon
13360 views
4 comments
0 upvotes
company logo
SDE - Intern
4 rounds | 7 problems
Interviewed by Microsoft
12384 views
1 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Amazon
8919 views
2 comments
0 upvotes