Last active
December 22, 2018 11:53
-
-
Save burdoto/b91a04ea57b17e54c1b12d015e902da1 to your computer and use it in GitHub Desktop.
Probably the smartest WHILE ever created.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| int n = -1, o = 0; | |
| while (n++ < nw.length) | |
| if (n == ind) nw[n + o++ - 1] = insert; | |
| else nw[n] = origin[n + o]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment