Sde Interview Questions

16,587 sde interview questions shared by candidates

Round 2 (Technical Interview): It was a virtual interview because of Covid-19. The interview was conducted on Google meet. The interviewer was very friendly. Asked me to introduce myself and then directly moved to technical questions. Question: Given a number whose number of digits may be more than 100, find the next greater number using the same digits. If the next higher number is not possible the print ‘Not Possible’. First I gave him a sorting based solution. But he was not satisfied. He asked me to optimise the solution. After thinking for some time, I came up with an O(n) solution. He was satisfied and finally asked me to code. I coded it perfectly. Question: Consider a matrix of n*m with all elements initially set to 0. Given q queries in the form:- R 0 5: it means to increase all elements of row 0 by 5 C 1 3: it means to increase all elements of column 1 by 3 After performing all the q queries, print the max element in the matrix.
avatar

Software Development Engineer (SDE)

Interviewed at Paytm

3.2
Nov 6, 2020

Round 2 (Technical Interview): It was a virtual interview because of Covid-19. The interview was conducted on Google meet. The interviewer was very friendly. Asked me to introduce myself and then directly moved to technical questions. Question: Given a number whose number of digits may be more than 100, find the next greater number using the same digits. If the next higher number is not possible the print ‘Not Possible’. First I gave him a sorting based solution. But he was not satisfied. He asked me to optimise the solution. After thinking for some time, I came up with an O(n) solution. He was satisfied and finally asked me to code. I coded it perfectly. Question: Consider a matrix of n*m with all elements initially set to 0. Given q queries in the form:- R 0 5: it means to increase all elements of row 0 by 5 C 1 3: it means to increase all elements of column 1 by 3 After performing all the q queries, print the max element in the matrix.

Viewing 111 - 120 interview questions

Glassdoor has 16,587 interview questions and reports from Sde interviews. Prepare for your interview. Get hired. Love your job.