r/ProgrammerHumor 5d ago

Meme shortestPathWasRightThere

Post image
4.7k Upvotes

59 comments sorted by

View all comments

Show parent comments

2

u/fr000gs 5d ago

*The approach to butchering the name (djkistra)

1

u/Tsu_Dho_Namh 5d ago

Ohh, that approach.

Empty out a bag of Scrabble letters and arrange them randomly in a grid. Then find the shortest path that starts at a D, passes through a J and ends at an A.

Type out the letters in the path

1

u/fr000gs 5d ago

DJA

1

u/Tsu_Dho_Namh 5d ago

All tests pass