fix some file extensions
This commit is contained in:
parent
68f8f3e56b
commit
f3a896c724
789 changed files with 91 additions and 62 deletions
|
|
@ -1,11 +0,0 @@
|
|||
encode = (str) ->
|
||||
str.replace /(.)\1*/g, (w) ->
|
||||
w[0] + w.length
|
||||
|
||||
decode = (str) ->
|
||||
str.replace /(.)(\d+)/g, (m,w,n) ->
|
||||
new Array(+n+1).join(w)
|
||||
|
||||
console.log s = "WWWWWWWWWWWWBWWWWWWWWWWWWBBBWWWWWWWWWWWWWWWWWWWWWWWWBWWWWWWWWWWWWWW"
|
||||
console.log encode s
|
||||
console.log decode encode s
|
||||
Loading…
Add table
Add a link
Reference in a new issue