if p1 and p2 are two consecutive prime number, in which cases (p1 + p2) / 2 is a prime number.
Softwareentwickler C Interview Questions
513,118 softwareentwickler c interview questions shared by candidates
Given a text file containing the text for Hamlet (/usr/share/file.txt), return the top 5 most frequent words with count.
Define Yourself
What is a class?
Given an unfair coin, devise an algorithm to produce a fair coin's output.
There are 4 people who want to cross a bridge. They each take 1, 2, 5 and 8 minutes. Only 2 people can cross at a time and they take as long as the slowest person. What is the fastest time you can get everyone across? Then I was asked to write the mathematical equation to determine the trade-off point between each of the 2 approaches to solving this.
Find the nth element in a linked list in constant time and space.
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.
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
Save a tree to an array
Viewing 1381 - 1390 interview questions