rearrange the string so that no consecutive characters are the same.
Sde Interview Questions
16,594 sde interview questions shared by candidates
A OOD design question: design a pizza shop in any language.
Directly Coding Optimal approaches without even Self-intro, The two were, first character of repetitive letters in a word and something similar to count occurrences in a sorted array
All the regular behavioral questions were asked, for example, “How do you take criticism?” and “How do you identify the root cause of a problem?” They weren’t particularly tough, but each question had multiple follow-ups and could be quite grilling. The LeetCode questions were recently Amazon-tagged and were only minor variations of those.
Behavioural type of questions focusing on certain role or scenario
They asked me to solve a problem on finding the longest substring without repeating characters. I explained my approach using a sliding window technique, optimized it to O(n), and implemented it in C++.
Design a class to rank the top k items in a store
Given an integer array, return the indices of the two numbers that add up to a target value.
Leadership principles and programming skills were tested
In first round the interview asked me that you work in amazon and have to make module where you have to deal with large dataset of mobile phone . Then asked to write code for different queries like mobile phone having price above 15000. Then, if data is frequently being added how will you carry on, which dataset will you use.
Viewing 631 - 640 interview questions