r/programming • • May 08 '15

Five programming problems every Software Engineer should be able to solve in less than 1 hour

https://blog.svpino.com/2015/05/07/five-programming-problems-every-software-engineer-should-be-able-to-solve-in-less-than-1-hour
2.5k Upvotes

2.1k comments sorted by

View all comments

Show parent comments

2

u/yanetut May 10 '15

Good summary. One quirk of bash worth mentioning (from its man page) :

When there are no positional parameters, "$@" and $@ expand to nothing (i.e., they are removed).

That's how the recursive calls to prob5 can eventually call that function with one argument.