Sde1 Interview Questions


Sde1 interview questions shared by candidates

Top Interview Questions

Sort: Relevance|Popular|Date
SDE1 was asked...9 December 2019

Tell me about yourself

3 Answers

Coding questions with sorting algorithms,two pointers, missing number etc

Can you please tell some more questions which were asked in groww interview


SDE1 was asked...21 August 2019

if abc = zab then can = ?

3 Answers


bzm =>taking prev char


SDE1 was asked...15 August 2016

1. find the first repeated word in a string 2. merge 2 sorted arrays 3 slot machine

3 Answers

Here's my rather straight forward java solution to #1: public static String firstRepeatedWord(String s){ String[] words = s.toLowerCase().split(" "); Map map = new HashMap(); for(String word:words){ if(!map.containsKey(word)) map.put(word, 1); else return word; } return s; } Less

Update-- hashmap uses a key of type String, and value of type Integer

I realize it is unnecessary to use hashmap, one could simply use an arraylist.

SDE1 was asked...3 April 2020

Basic programming questions.

2 Answers

I solved them.

Can you specify the difficulty level of the questions?

SDE1 was asked...1 November 2018

Given list of bag, each bag has its weight and value. You have a maximum weight to carry. Find the bag that are the most valuable and the sum of weight should be lower than your limit.

2 Answers

Dynamic programming

Sounds like the classic 0-1 knapsack problem.

SDE1 was asked...30 October 2019

Given a matrix sorted row wise and column wise, find an element in it

2 Answers

I gave two approaches, one was in O(nlogn) and the other in O(n) which took a bit of time for me to figure out the features of this kind of matrix Less

I thought about the matrix & realized that if the number you need to search, is greater than a number in the matrix, then it would be either on the right, or down to it in the matrix The approach is to do binary search on the diagonal (0,0 to n,n diagonal) & then search between the quadruplet (4 numbers) Less

SDE1 was asked...1 November 2018

You are given a m by n grid. There is one character in each cell. You need to find all words in the grid.

2 Answers

Depth first searching problem.

Word Search or Word Search II on LeetCode.

Goldman Sachs
SDE1 was asked...29 April 2018

How do you determine a number is a power of ten.

2 Answers

number mod 10 == 0 although 10^0 is a tricky case

# starts with a '1' and ends with 1 or more '0's

SDE1 was asked...5 September 2018

ML, algorithm, OOA/D, java questions

2 Answers

didn't algorithms questions well

Can you please let me know what are the kind of questions asked in the phone interview. Less

SDE1 was asked...25 February 2020

What is your biggest challenge with managers

2 Answers

As an Amazon employee who interviewed and hired a lot of people here, I've created a guide that has all the questions and winning answers from an Amazonian recruiter perspective. Please check it out at . Pls also check the positive feedback at the bottom of that page! Thanks Less

I'm pretty sure answers a question a lot like this. They have a lot of behavioral questions that tech companies like Amazon ask...I'd definitely recommend looking into it! Less

Viewing 1 - 10 of 860 Interview Questions