Skip to main content
added 504 characters in body
Source Link
Justin Mariner
  • 5k
  • 1
  • 13
  • 18

Japt, 34 bytes

ó¥ k_l vîò k_l É}Ãc
ó¥ l ¥Ul ?U:ß

Recursively removes pairs of equal numbers until none exist.

Try it online! with the -Q flag to format the output array.

Run all test cases using my WIP CodePen.

Japt, 34 bytes

ó¥ k_l vîò k_l É}Ãc
ó¥ l ¥Ul ?U:ß

Recursively removes pairs of equal numbers until none exist.

Try it online! with the -Q flag to format the output array.

Japt, 34 bytes

ó¥ k_l vîò k_l É}Ãc
ó¥ l ¥Ul ?U:ß

Recursively removes pairs of equal numbers until none exist.

Try it online! with the -Q flag to format the output array.

Run all test cases using my WIP CodePen.

added 1 character in body
Source Link
Justin Mariner
  • 5k
  • 1
  • 13
  • 18

Japt, 3534 bytes

ó¥ k_l vîò f_lk_l <2É}Ãc
ó¥ l ¥Ul ?U:ß

Recursively removes pairs of equal numbers until none exist.

Try it online!Try it online! with the -Q flag to format the output array.

Japt, 35 bytes

ó¥ k_l vîò f_l <2}Ãc
ó¥ l ¥Ul ?U:ß

Recursively removes pairs of equal numbers until none exist.

Try it online! with the -Q flag to format the output array.

Japt, 34 bytes

ó¥ k_l vîò k_l É}Ãc
ó¥ l ¥Ul ?U:ß

Recursively removes pairs of equal numbers until none exist.

Try it online! with the -Q flag to format the output array.

Source Link
Justin Mariner
  • 5k
  • 1
  • 13
  • 18

Japt, 35 bytes

ó¥ k_l vîò f_l <2}Ãc
ó¥ l ¥Ul ?U:ß

Recursively removes pairs of equal numbers until none exist.

Try it online! with the -Q flag to format the output array.