# Puzzle 22) Come Down

Submitted by Abhishek Jain, on August 25, 2017

**Puzzle**

You are standing at the top of a 100 meter tall building, you have a rope 75 meters long and the only way you can come down is through the rope. You can cut the rope anywhereyou want, you also can tie or hook it at any point on the building, but you can’t jump and of course don’t even think about the stairs. Find out the best way to come down.

**Answer**

- Cut the rope into two pieces of 50 and 25 meters.
- Nail a hook at the top of the building.
- Hang the 50 meters rope at the middle from the hook in such a way (Ω) that it would be hanging down to 25 meters both sides.
- With the help of it, descend along with the small rope.
- When you reach the end tie second rope there.
- Now take the long rope, away from the hook by pulling it down.
- Come down with the help of 25 meter rope. Now you are 50 meters away from the ground.
- Use the 50 m rope to descend completely. DONE..!

TOP Interview Coding Problems/Challenges

- Run-length encoding (find/print frequency of letters in a string)
- Sort an array of 0's, 1's and 2's in linear time complexity
- Checking Anagrams (check whether two string is anagrams or not)
- Relative sorting algorithm
- Finding subarray with given sum
- Find the level in a binary tree with given sum K
- Check whether a Binary Tree is BST (Binary Search Tree) or not
- 1[0]1 Pattern Count
- Capitalize first and last letter of each word in a line
- Print vertical sum of a binary tree
- Print Boundary Sum of a Binary Tree
- Reverse a single linked list
- Greedy Strategy to solve major algorithm problems
- Job sequencing problem
- Root to leaf Path Sum
- Exit Point in a Matrix
- Find length of loop in a linked list
- Toppers of Class
- Print All Nodes that don't have Sibling
- Transform to Sum Tree
- Shortest Source to Destination Path

Comments and Discussions

**Ad:**
Are you a blogger? Join our Blogging forum.