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
16,583 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
Count number of consecutive ones and find the second greatest element in the array.
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?
Write a function that takes a string as an input and outputs an integer, e.g. turning "1234" into 1234.
• 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.
why do you want to join nokia?
They asked from data structures and algorithms, oops, os, dbms
Find the smallest number, greater than a given number p, which does not have '11' in it's binary representation.
A lot of behavioral questions. Some coding, not difficult.
Viewing 1 - 10 interview questions