6 stories
Given a node in a binary tree, implement the algorithm for finding its next in-order node in the containing tree.
1,409 views
You have a directed connected graph. Write an algorithm that detects any cycle, if one exists, and returns a list of its nodes.
1,578 views
Write an algorithm that takes a tree data structure and writes out all the elements in a breadth-first traversal order.
1,481 views
Given a Singly Linked List, write an algorithm to find the middle node. You may not use more than one loop of any kind.
1,423 views
A linked list is given. Write an algorithm that detects whether it's a singly linked list or a circularly linked list.
1,479 views
Write the algorithm that LinkedIn.com uses to tell you how many professionals you have access to.
1,472 views