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

SDE - Intern

Groww
upvote
share-icon
2 rounds | 2 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 6 months
Topics: Data Structures and Algorithms, Operating System, Database management system, object oriented programming, Projects.
Tip
Tip

Tip 1 : Be well prepared in DSA , including graphs,dp
Tip 2 : practice regularly one or two hours is enough but u need to be consistent for atleast a year or so
Tip 3 : prepare os dbms oops in last week of the interview

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

Tip 1 : at least Two projects
Tip 2 : Some experience in competitive programming will be beneficial.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration60 Minutes
Interview date10 Apr 2021
Coding problem1

Timing- In the evening around 5 pm
Environment- It was online test so I was in my room comfortable.

1. Best Time To Buy and Sell Stock

Hard
20m average time
80% success
0/120
Asked in companies
Disney + HotstarAmazonOracle

You have been given an array 'PRICES' consisting of 'N' integers where PRICES[i] denotes the price of a given stock on the i-th day. You are also given an integer 'K' denoting the number of possible transactions you can make.

Your task is to find the maximum profit in at most K transactions. A valid transaction involves buying a stock and then selling it.

Note
You can’t engage in multiple transactions simultaneously, i.e. you must sell the stock before rebuying it.
For Example
Input: N = 6 , PRICES = [3, 2, 6, 5, 0, 3] and K = 2.
Output: 7

Explanation : The optimal way to get maximum profit is to buy the stock on day 2(price = 2) and sell it on day 3(price = 6) and rebuy it on day 5(price = 0) and sell it on day 6(price = 3). The maximum profit will be (6 - 2) + (3 - 0) = 7.
Problem approach

The problem can be solved by using dynamic programming. 
But first explain the recursive approach also and tell the time complexity and then move on to the dynamic programming part.
Explain what are the subproblem and optimal substructure and then code the dp part.

Try solving now
02
Round
Easy
Face to Face
Duration60 minutes
Interview date12 Apr 2021
Coding problem1

Timing - 2pm
Environment - my room
Interviewer was pretty chilled.

1. Design a stack that supports getMin() in O(1) time and O(1) extra space

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

Create a stack data structure that allows operations such as push (adding an element), pop (removing the top element), top (retrieving the top element), and also provides a way to retrieve the minimum element in constant time.


Implement the following public functions :

1. push(data) :
This function should take one argument of type integer. It pushes the element into the stack and returns nothing.

2. pop() :
It pops the element from the top of the stack and returns nothing.

3. top() :
It returns the element being kept at the top of the stack.

4.  getMin() :
It returns the smallest element present in the stack.
Operations Performed on the Stack:
Query-1(Denoted by an integer 1): Pushes integer data to the stack. (push function)

Query-2(Denoted by an integer 2): Pops the data kept at the top of the stack. (pop function)

Query-3(Denoted by an integer 3): Fetches and returns the data being kept at the top of the stack. (top function)

Query-4(Denoted by an integer 4): Returns the smallest element present in the stack. (getMin() function)
Problem approach

Explain the two stack approach first and then move to the optimized version try writing a different function for min element apart from which is given in the geeksforgeeks.

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
company logo
SDE - Intern
3 rounds | 3 problems
Interviewed by Groww
1309 views
0 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Groww
1905 views
0 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 5 problems
Interviewed by Groww
1540 views
0 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 3 problems
Interviewed by Groww
644 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - Intern
3 rounds | 6 problems
Interviewed by Amazon
15481 views
4 comments
0 upvotes
company logo
SDE - Intern
4 rounds | 7 problems
Interviewed by Microsoft
15339 views
1 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Amazon
10142 views
2 comments
0 upvotes