Search a max value in an unsorted array. (Very abstract question) in better than O(n).
Software Interview Questions
747,533 software interview questions shared by candidates
Given a set of strings, a number 'n', and a function that takes a string and gives back a score, find the n largest scored strings in the set.
Game of Life - write a function to calculate next state of the board based on current state
Given two lists A and B containing sorted non-unique integers, return the elements in A but not B and the elements in B but not A.
Find the longest subsequence of duplicate numbers in an array of sorted numbers.
How would you improve Uber?
What is the output? int n = 1; puts(((char*)&n)[0]==1?"Y":"N");
1) Given a string of parantheses, check if the string is valid. ex: [[]] is valid, ][][ is not valid. How would you solve if the parantheses could be of different types like {,[,(
CODING (weight: 50%) The string "PAYPAL IS HIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility) P A H N A P L S I I G Y I R And then read line by line: PAHNAPLSIIGYIR Write the code that will take a string and make this conversion given a number of rows: String convert(String text, int nRows); convert("paypalishiring", 3) should return "pahnaplsiigyir"
Given a string "AABCCC" make a new string "2A1B3C"
Viewing 451 - 460 interview questions