Given a string of format '2+3*2-1', calculate and return the result. No parenthesis in the input, just integers and + - * / operators. Operator precedence has to be considered. Linear time complexity and minimal data structure use is preferred.
Software Engineers Interview Questions
419,267 software engineers interview questions shared by candidates
Given a triangle, determine if its a scalene, equilateral, isosceles or neither... required knowledge of triangle properties, I learnt these properties about two decades ago so ofcourse I was fuzzy on the details, completely unexpected
What is a class?
Given an unfair coin, devise an algorithm to produce a fair coin's output.
Find count of unique characters in a given string
implement strtok
Imagine you have a string and you want to return False if there are repeat characters in this string, what are the fastest and most space efficient ways to do this. (I clarified and he only wanted to return False if there was a repeat letter or number)
Find the nth element in a linked list in constant time and space.
Save a tree to an array
//input: [1,2,[3,4,[5,6],7,[8,[9]]],10] //output: [1,2,3,4,5,6,7,8,9,10]
Viewing 1201 - 1210 interview questions