Skip to content

Instantly share code, notes, and snippets.

@shu1
Last active January 26, 2021 15:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shu1/5d17020465085351b426d6c0db110f6b to your computer and use it in GitHub Desktop.
Save shu1/5d17020465085351b426d6c0db110f6b to your computer and use it in GitHub Desktop.
foobar
/*bug-in-github-api-content-can-not-be-empty*/
/*bug-in-github-api-content-can-not-be-empty*/
var output = "endrtednedd:/os....cp.rnnn.rhhps/.tt|sfeaiaaofd.ow.otooapa.asu./thhse";
var col = output.split('');
var table = output.split('');
for (var j = output.length; j > 1; --j) {
table.sort();
for (var i = table.length-1; i >= 0; --i) {
table[i] = col[i] + table[i];
}
}
console.log(table);
{"name":"foobar","settings":{},"filenames":["index.html","index.css","index.js"]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment