Cyclomatic complexity is a software metric (measurement). It was developed by Thomas J. McCabe, Sr. in 1976 and is used to indicate the complexity of a program. It is a quantitative measure of the complexity of programming instructions
@mgenev I'm in Hank's class. I went a little bit to town with mine, just to practice: http://jsfiddle.net/thewocky/Sc7Up/11/. I like the while loop best (as long as you don't mind destroying the array in the process).