Skip to content

Instantly share code, notes, and snippets.

@ImaginaryDevelopment
Created May 10, 2022 13:15
Show Gist options
  • Save ImaginaryDevelopment/7177dd446a9d39237a90e76d1b1b5c2d to your computer and use it in GitHub Desktop.
Save ImaginaryDevelopment/7177dd446a9d39237a90e76d1b1b5c2d to your computer and use it in GitHub Desktop.
meme problem
// https://www.reddit.com/r/ProgrammerHumor/comments/umbmlt/this_is_hurting_my_ego/
[
"8809", 6
"7111", 0
"2172", 0
"6666", 4
"1111", 0
"3213", 0
"7662", 2
"9313", 1
"0000", 4
"2222", 0
"3333", 0
"5555", 0
"8193", 3
"8096", 5
"1012", 1
"7777", 0
"9999", 4
"7756", 1
"6855", 3
"9881", 5
"5531", 0
"2581", 2
]
|> Seq.map(fun (n,x) ->
n
.Replace("1","A")
.Replace("0","1")
.Replace("A","0")
.Replace("2","0")
.Replace("3","0")
.Replace("5","0")
.Replace("6","1")
.Replace("9","1")
.Replace("8","2")
.Replace("7","0"),
x
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment