DEV Community

Discussion on: Don't document your code. Code your documentation.

Collapse
 
araybold profile image
araybold

I have a number of challenges for people who think code can generally be self-documenting. The first one is to code the quicksort algorithm in such a way as to make the average and worst-case time complexity obvious, and also explain the circumstances in which the worst case occurs.