No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Almosted-Sorted-Distinct.b93 948B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. v XX
  2. YY
  3. > v
  4. 0124445326432
  5. 8567899988288
  6. v <
  7. > 94+2* 21p 94+ 31p v
  8. v <
  9. >3+g40g1+:31g%\31g/3+p40g:31 v >$$v
  10. >0pv>20g- #v v# < # $_v#`\g03<
  11. 2v0<^:g+3/g< ^ /g13\%g13:g04g+3/g 13\%g13:+1:p04:< >30g-|
  12. >01-^>::31g%\31^ v_$:0\:31g%\3 1g/3+p^>::31g%\31g/3+g::| $
  13. ^_v#-g12:+1<>:20g`#v_30p:>1-:1+ | # ^ $$< 1
  14. $ ^ $># 2# 0 p# <$<0 p+3/g13\%g13:\0 +<
  15. >@ ^p+3/g13 \%<
  16. :40p:1+:31g%\31g/3+g40g:31g%\31g/ 3+g40g1+:31g%\31g/3+p40g:31 g%\31g/3+p
  17. [20] max
  18. [30] search
  19. [40] temp
  20. [21] arr-size
  21. [31] arr-width
  22. ---------------------------------------
  23. Almosted Sorted Distinct
  24. ========================
  25. Replaces all repeated values in an array with zero.
  26. Works best on (almost) sorted lists (otherwise this is O(n^2))