Given an array of items of three different colors red, green, blue. How would you sort the items in the array so that all the items with a certain color would be grouped together.
Sde Interview Questions
15,057 sde interview questions shared by candidates
1- Given an array of integers, positive and negative. find an interval in that array, whose elements constitutes the maximum sum
Write a function that takes a string as an input and outputs an integer, e.g. turning "1234" into 1234.
If you have eight objects that all weigh the same except for one (which is heavier) and a two-sided scale, what is the minimal number of times you can use the scale to determine the odd item out?
• You are given a maze with N cells. Each cell may have multiple entry points but not more than one exit (ie. entry/exit points are unidirectional doors like valves). The cells are named with an integer value from 0 to N-1. You need to find the the length of the largest cycle in the maze. Return -1 if there are no cycles. • You are given a maze with N cells. Each cell may have multiple entry points but not more than one exit (ie. entry/exit points are unidirectional doors like valves). The cells are named with an integer value from 0 to N-1.
Find the smallest number, greater than a given number p, which does not have '11' in it's binary representation.
They asked from data structures and algorithms, oops, os, dbms
why do you want to join nokia?
[Round 1] Find loop in a linked list
Mainly based on SQL
Viewing 1 - 10 interview questions