Uploaded April 2015 | Updated December 2026, 3 hours ago
Given a binary tree and a sum, find if there is a path from root to leaf which sums to this sum.
github.com/mission-peace/interview/blob/master/src/com/interview/tree/RootToLeafToSum.java
github.com/mission-peace/interview/wiki
Given a binary tree and a sum, find if there is a path from root to leaf which sums to this sum.
github.com/mission-peace/interview/blob/master/src/com/interview/tree/RootToLeafToSum.java
github.com/mission-peace/interview/wiki



![Floyd Warshall Algorithm All Pair Shortest Path Graph Algorithm
This algorithm finds shortest path between every pair of vertices.
https://www.facebook.com/tusharroy25
https://github.com/mission-peace/interview/blob/master/src/com/interview/graph/FloydWarshallAllPairShortestPath.java
https://github.com/mission-peace/interview/wiki
n computer science, the Floyd–Warshall algorithm is an algorithm for finding shortest paths in a weighted graph with positive or negative edge weights (but with no negative cycles).[1][2] A single execution of the algorithm will find the lengths (summed weights) of the shortest paths between all pairs of vertices, though it does not return details of the paths themselves. Versions of the algorithm can also be used for finding the transitive closure of a relation R, or (in connection with the Schulze voting system) widest paths between all pairs of vertices in a weighted graph. Floyd Warshall Algorithm All Pair Shortest Path Graph Algorithm](https://i.ytimg.com/vi/LwJdNfdLF9s/mqdefault.jpg)






