Sde Interview Questions

16,641 sde interview questions shared by candidates

given a string and an infinity width 2d matrix of length n. You have to write the characters of the string in a zigzag form ie if str[0] is at a[0][0] str[1] goes at a[1][1]. Once you reach the last row the direction of zigzag changes z[i][j] to z[i-1][j+1]. Print the final state of the 2d array
avatar

SDE-intern

Interviewed at Flipkart

3.8
Mar 28, 2025

given a string and an infinity width 2d matrix of length n. You have to write the characters of the string in a zigzag form ie if str[0] is at a[0][0] str[1] goes at a[1][1]. Once you reach the last row the direction of zigzag changes z[i][j] to z[i-1][j+1]. Print the final state of the 2d array

Duck in the pond. Start: Duck located in the center of circle (pond). Fox is on the beach and cannot swim. Duck cannot fly (by some reason), but once duck is on the beach, she will fly away. Duck speed - x Fox speed - 4x Can duck escape? Why?
avatar

Software Development Engineer (SDE) II

Interviewed at Microsoft

4
Aug 24, 2015

Duck in the pond. Start: Duck located in the center of circle (pond). Fox is on the beach and cannot swim. Duck cannot fly (by some reason), but once duck is on the beach, she will fly away. Duck speed - x Fox speed - 4x Can duck escape? Why?

Viewing 331 - 340 interview questions

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