Skip to content

Commit

Permalink
*
Browse files Browse the repository at this point in the history
  • Loading branch information
imteekay committed Jul 2, 2023
1 parent 449b52d commit 2f4c350
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
function findArray(pref) {
let output = [pref[0]];

for (let index = 1; index < pref.length; index++) {
output.push(pref[index - 1] ^ pref[index]);
}

return output;
}

0 comments on commit 2f4c350

Please sign in to comment.