Given an integer write a function that converts the input into a linkedList where each node corresponds to a number of the integer. Eg: 25697 == 2 -> 5 -> 6 -> 9 -> 7 Then write a function that takes 2 linkedList, add the corresponding integers and return a third list with the result.
Software Engineers Interview Questions
420,122 software engineers interview questions shared by candidates
int getCount(int[] arr, int num)
Recursively reverse a singly linked list.
Write a function that takes an input string, consisting of several words separated by spaces, and print out each word reversed, keeping the same order within the string.
Given a string, find whether it has any permutation of another string. Need to be efficient
find a loop in a list
The hardest question I was hit with was to write a function that takes an integer N and returns an NxN matrix with incrementing integers in a spiral, from outside in.
I was not able to code reversing a Query using recursion. :(
Given an array of unsorted numbers, find triplets that equal a specified sum.
“You have all of the prices for a given stock for the next year. You can buy once and sell once in that year. How do you determine when to buy and sell to maximize your profit?”
Viewing 1291 - 1300 interview questions