paint-brush
Shortest and Longest Path Algorithms: Job Interview Cheatsheetby@ourarash
26,026 reads
26,026 reads

Shortest and Longest Path Algorithms: Job Interview Cheatsheet

by Ari Saif5mNovember 18th, 2018
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Shortest and Longest Path Algorithms: Job Interview Cheatsheet is a quick overview and comparison of shortest and longest path algorithms in graphs. Questions on this topic are very common in technical job interviews for computer programmers. The Shortest Distance problem only requires the shortest distance between nodes, whereas the Shortest Path Problem requires the actual shortest path between nodes. The shortest path can usually be found with minor enhancement in the algorithm. Floyd-Warshall is the simplest algorithm: We calculate the shortest possible path from node i to j.

Coin Mentioned

Mention Thumbnail
featured image - Shortest and Longest Path Algorithms: Job Interview Cheatsheet
Ari Saif HackerNoon profile picture
Ari Saif

Ari Saif

@ourarash

L O A D I N G
. . . comments & more!

About Author

Ari Saif HackerNoon profile picture
Ari Saif@ourarash

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite