HackerTube.dev

Find the Longest Path

switchbg · 57.3K views · 2010-01-14 · 2:02

Open on YouTube ↗

If playback is restricted in your region, try opening the original video. Use Mark watched to add it to your marked videos.

Overview

Find the Longest Path is a comedic song by Daniel J. Barrett, a Billy Joel parody that describes the NP-hard longest path problem in informal terms.

On Hacker News

HN shares it as a fun, memorable way to explain the longest path problem and as an entry in lists of programming and math songs.

Recommended by 1 HN people across 1 months · HN mentions 2021–2026

Topics

Search by tags

What people said

wpasc · 2021-07 · Recommendation

Haha please do, a video would be great. Your song reminded me of the song: "Find the Longest Path" which you may get a kick out of: [VIDEO]

Read the original HN comment ↗
saghm · 2026-05 · Reference

Finding the longest path in a graph is itself a pretty well-described NP-complete problem: [LINK] Alternately, you can listen to a Billy Joel parody that describes the problem in decidedly less academic terms: [VIDEO]

Read the original HN comment ↗
seniorsassycat · 2021-11 · Reference

Stan Rogers has a knack for writing songs that sound older than himself, this song shows he doesn't need nautical themes to do it. Some other programming and math songs Kill -9 [LINK] Find the longest path [VIDEO]

Read the original HN comment ↗

Sources

Video by switchbg, played through YouTube.

Data and selection notes

HN summaries and labels may contain AI errors. HN dates refer to discussions, not video publication.

HN Library: HackerTube export (2026-10-31) and open-index/hacker-news. Upstream summaries and classifications may contain AI errors.

Views, duration and playback status refresh separately from the published catalog. When an update fails, existing data remains visible.

Selection checks
  • SaaS & AI candidates: Topic keywords do not match
  • Editor-approved picks: Editorial review is required

Rule matches identify candidates. They do not guarantee video quality or financial results.

About the library and its sources