Technical Interview

Home
Added Recently
Data Structures
Puzzles
Google & Microsoft
C/C++ Questions
Java Interview Questions
Quantitative Problems
Algorithms
Featured Articles
Amazon Interview Question
Compaq Interview Question
Technical Interview
Interview Process
Introduction Questions
Object Oriented
Google Pages
Fundamental Questions
Resume Tips
Links
Contact Us
Submit Question/Answer

 Algorithms Questions

These are some interview questions on Algorithms. More questions will be added every week or so.


  • Algorithms Interview Question: Given two numbers m and n, write a method to return the first number r that is divisible by both....



  • Algorithms and Coding: Permutations: Write a function to print all the possible permutations...

  • Algorithms and Coding: Web browser: You are developing a web browser (something like e.g. Netscape, etc.)...

  • Algorithms and Coding: Multiple URLs: Since web pages can have multiple URLs pointing to them...


There are 22 gloves in a drawer: 5 pairs of red gloves, 4 pairs of yellow, and 2 pairs of green


There are four people who want to cross a bridge; they all begin on the same side. You have 17 minutes to get them all across to the other side. It is night, and they have one flashlight. A maximum of two people can cross the bridge at one time. Any party that crosses, either one or two people, must have the flashlight with them. The flashlight must be walked back and forth; it cannot be thrown, for example. Person 1 takes 1 minute to cross the bridge, person 2 takes 2 minutes, person 3 takes 5 minutes, and person 4 takes 10 minutes. A pair must walk together at the rate of the slower person’s pace. For example, if person 1 and person 4 walk across first, 10 minutes have elapsed when they get to the other side of the bridge. If person 4 returns the flashlight, a total of 20 minutes have passed and you have failed the mission.

Write a program to reverse a singly linked list

Solution

 

Write a program to delete a node in double linked list

Solution

 

Write a program to sort a linked list

Solution

 

Write a program to reverse a string

Solution

 

Write a program to insert a node in a sorted linked list

Solution