You are given an alphanumeric string. Complete the function sortSegments that will segment the string into substrings of consecutive letters or numbers and then sort the substrings. For example, the string "AZQF013452BAB" will result in "AFQZ012345ABB". The input letters will be uppercase and numbers will be between 0 and 9 inclusive.
Engineer Developer Interview Questions
467,789 engineer developer interview questions shared by candidates
Implement x^y function in an imaginary proccessor who doesnt have +, /, * operators.
Expectation for coding Questions: Must be sort of analytical questions testing knowledge of DS/Algos and problem-solving skills, that could be done in 65-70 minutes. Reality: Problem Solving tricky questions, I would say they are not really checking candidate's Data Structures knowledge. Standard DS/Algos can be used to come up with the sol, but again coming up with the optimised sol. is the challenging part, I feel. I though it could only be done in the given time frame with most optimised approach, only if candidate had gone through that kind of question in the past. Brute Force or Semi-optimised approach can be thought of, but coming up with most optimised approach in the given time frame, needs some serious practice and some luck too😅. According to me, either questions' difficulty level should be reduced or time can be increased.
There are 25 horses. You get to race them 5 at a time, determining relative ranking. How many races does it take to figure out the top 3?
question: Write a function that takes two numbers and adds them together -- one is an unsigned int, and the other is a (possibly very large) number, represented in int array form. So e.g. add([1,2,3], 5) --> [1,2,8]
Write a program to test endianess of storage.
can we find the end of circular linked list?
write an algorithm to determine is "happy" ... a number is happy if the sum of the square of the digits ever equals one. An example of a happy number is 19: 1^2 + 9^2 = 82 8^2 + 2^2 = 68 6^2 + 8^2 = 100 1^2 + 0^2 + 0^2 = 1 If it is not happy then it will eventually hit repeat back to a number that it already saw
Take an input string and output the reverse of that string. May use any programming language.
The questions asked were about previous projects(how they were laid out, how I went about doing them and that sort of questions), about me in previous jobs and questions about me as a person
Viewing 1791 - 1800 interview questions