The question was: Given a text written in some language where the alphabets are represented with 1 byte or 2 byte. But the one byte alphabets always have their MSB 1 and the 2 byte charecters always have their MSB 0. Now when at some point user presses a back space how many bytes are to be deleted to erase the alphabet?
Software Development Engineer Interview Questions
32,958 software development engineer interview questions shared by candidates
Q: In an array that has one value for more than half of its elements, how can you find that value?
Write a function that returns the longest palindrome in a string. Not just the first one or any palindrome, but the longest. The String is a long sequence of characters, spaces included.
Write a function that takes a String as a parameter. Count the number of A's in the String before you reach a C.
How to create excel header string
Write a function to convert a number in Roman numeral form to a decimal representation.
Write a function to print out the contents of a singly-linked list in reverse order.
Write a function that reverses the letters in each word using only one char buffer. E.g.: "I work at Microsoft" to "I krow ta tfosorciM"
how can a particular application be tested apart from testing its functionality
You've a singly linked list where every node in the list has a field "random" which points to other node in the same list. Write a function to clone this list (create a new copy of the same). Don't use extra space (just the pointer variables are fine).
Viewing 351 - 360 interview questions