remove all elements from linked list with "n" as their value
Software Development Engineer Interview Questions
32,811 software development engineer interview questions shared by candidates
How to rotate an array by a particular amount, require best time and space complexity.
there is an array with 99 length long, each spot will have number from 1-100, number will never repeat on the array. Give as many way as possible to find the missing number.
using a mac function toLower(char c) to write a toUpper(char c) function, without using any ascii code
given a linked list which has two types of pointers, a normal next pointer which points to next element in the list and random pointer which points to random element in the list. Question was to clone this linked list
You are in a room by yourself and someone walks into the room, asks you to find the temperature, and leaves. How would you find the temperature in the room without leaving the room?
Write the algorithm for this: If you have a string aaabbc the output should be a3b2c1, for the string aabcc the output should be a2b1c2 and so on. You should not allocate memory for a new string and you can do this only by reading each character once. Ps: if the result is bigger than the original string (like abc -> a1b1c1) just return null or some message that makes that clear.
Implement a LRU cache.
Reverse a singly linked-list with and without using an auxiliary data structure.
Write an algorithm that does an in-order traversal of a tree recursively. Now, write the same algorithm iteratively.
Viewing 361 - 370 interview questions