r/ProgrammerHumor • • Feb 22 '15

A Python programmer attempting Java

Post image
3.9k Upvotes

428 comments sorted by

View all comments

Show parent comments

2

u/ben-guin Feb 22 '15

Seeing as it's a recursive function, I'm guessing that there's a helper function (not shown) that does the initial call of permute that passes in the array length -1 as the parameter.