Hacker News new | ask | show | jobs
by pdpi 2879 days ago
Yeah, precisely. BFS and DFS are part of a very small collection of algorithmic questions I consider fair game — but I would never ask them directly. Instead I'm likelier to ask something like pretty printing a directory structure, so a function that prints out something like

    bin/
      sh
    usr/
      bin/
      local/
        bin/
      var/
      ...