Probability of a Car Passing By

Posted at 12:14 am by Keisha l, on September 25, 2016

The probability of a car passing a certain intersection in a 20 minute windows is 0.9. What is the probability of a car passing the intersection in a 5 minute window? (Assuming a constant probability throughout)

Missing or Duplicate Number in an Array

Posted at 7:07 pm by Keisha l, on September 23, 2016

Write a function that will find a missing or duplicated number in an array.

Probability Distribution Function

Posted at 7:06 pm by Keisha l, on September 23, 2016

Write code to generate all possible combinations of ‘r’ elements in a given array of size ‘n’?

Removing a Character from a String

Posted at 6:55 pm by Keisha l, on September 23, 2016

What method can be used to pick or remove any given character from a string?

Find Longest Palindrome In A String

Posted at 6:54 pm by Keisha l, on September 23, 2016

How will you find out the longest palindrome in a given string.

Find The Depth of a Binary Tree

Posted at 6:54 pm by Keisha l, on September 23, 2016

How will you find the depth of a binary tree?

Check If a Number is Power of Two

Posted at 6:53 pm by Keisha l, on September 23, 2016

What code will you write to check if a number is power of two or not?

Check if a Linked list is a Palindrome or Not

Posted at 6:53 pm by Keisha l, on September 23, 2016

Write code that will check if a linked list is a palindrome or not.

Write a program for producer-consumer problem

Posted at 6:52 pm by Keisha l, on September 23, 2016

Write a program for producer-consumer problem. Use a blocking queue.

Serialize and Deserialize a Binary Tree

Posted at 6:50 pm by Keisha l, on September 23, 2016

Write code to serialize and deserialize a given binary tree.