Gudday Jrun,
I undid your deletion of Mohammed's function in the solution page for K&R chapter 4 exercise 13 because it does use recursion after all: swap() calls itself (somehow my edit summary got cut short so it doesn't make much sense). Perhaps it is better not to delete functions whole in any case, and instead to give them a negative review. By the way, the review guidelines and templates there have barely been used, so if you would like to suggest changes to them, then please go right ahead. Also: welcome to the wiki. :-)
--Laird (talk) 22:51, 8 March 2016 (UTC)
hey Liard,
i'm still learning how this thing works so appreciate the pointers. and yes i did miss the recursion on swap() although it's really not a recursion for reverse() but i guess it's good enough. i myself was actually blown away by Sander Goos's solution. i wish there was a way to vote the solutions up or down. -- Jrun
- I've just taken a look at Sander Goos's solution: it *is* very clever - took me a while to figure out how it worked! At first I was convinced it was broken, but it's just very cleverly written.
- By the way, a couple more pointers: it's helpful to "sign" your comments (just click the signature button above the edit window) so it's clear who's saying what. Here's some info on signatures: [1]. Also, in conversations like this it helps to prefix each paragraph with one or more colons so comments are nested, like I've done for this one. --Laird (talk) 23:57, 8 March 2016 (UTC)