I have forgotten
my Password

Or login with:

  • Facebookhttp://facebook.com/
  • Googlehttps://www.google.com/accounts/o8/id
  • Yahoohttps://me.yahoo.com
Index »

why wouldn't this simpler code work?

CodeCogs\′s Photo
31 Dec 11, 10:50PM
why wouldn't this simpler code work?
I've looked into this page and a variety of sources on this and I have to admit I'm inclined to agreed with you. I think Lucian has made this harder that is actually needed to be.

Where your function would differ over the existing one is when does not contain a perfect sequence of integers. i.e. {4,1,2,7,3}. However, I can't see when it would be logical to do this.

I'll await feedback from Lucian, but upload you code as a draft for now.
Currently you need to be logged in to leave a message.