Title / Description
Code function mapNumber(id1, id2){ var firstDigit = Math.min(id1, id2); var secondDigit = Math.max(id1, id2); return (firstDigit*(25-firstDigit)>>1) + secondDigit - 1; }
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code