Find Out if a Linked List has a Cycle
Without marking nodes, find out if a linked list has a cycle in it or not.
Without marking nodes, find out if a linked list has a cycle in it or not.
You have 3 jars that are all mislabeled. One jar contains Apple, another contains Oranges and the third jar contains
A man has two ropes of varying thickness, those two ropes are not identical, they aren’t the same density nor
Write a function for r and 5() that returns a random int between 0 and 5, implement r and 7
Out of 10 coins, one weighs less then the others. You have a scale. How will you determine which one
The probability of a car passing a certain intersection in a 20 minute windows is 0.9. What is the probability
Write a function that will find a missing or duplicated number in an array.
Write code to generate all possible combinations of ‘r’ elements in a given array of size ‘n’?
What method can be used to pick or remove any given character from a string?
How will you find out the longest palindrome in a given string.
How will you find the depth of a binary tree?
What code will you write to check if a number is power of two or not?
Write code that will check if a linked list is a palindrome or not.
Write a program for producer-consumer problem. Use a blocking queue.
Write code to serialize and deserialize a given binary tree.