how to merge two linked lists without using temp node
Software Development Engineer Interview Questions
32,819 software development engineer interview questions shared by candidates
Write an algorithm that does an in-order traversal of a tree recursively. Now, write the same algorithm iteratively.
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
Code a function in C to get the largest consecutive addition of integer numbers fron an array.
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
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?
Questions included in my description
Reverse a singly linked-list with and without using an auxiliary data structure.
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.
Viewing 391 - 400 interview questions