Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Prog Challenge

Name: Anonymous 2022-10-26 12:36

We all know the classic magic numbers, like 0xcafebabe and 0xdeadba11

But are there more? Write a routine which given an english dictionary finds all words re-presentable in hex that way.

Challenge: make it O(n)

Name: Anonymous 2022-10-27 5:46

let words = [];
foreach(let d : dict) {
if(d.all(l : '157abcdef'.contains(l)))
words.add(d)
}

o(n)

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List