Skip to main content
maxb's user avatar
maxb's user avatar
maxb's user avatar
maxb
  • Member for 6 years, 8 months
  • Last seen this week
awarded
comment
Sum of neighbours
Fun to see that MathGolf is still being used!
comment
Output with the same length always
@Hippopotomonstrosesquipedalian as long as the hash output is unique for the range [-2^31, 2^31) and doesn't contain any digits, go for it!
awarded
awarded
awarded
comment
Find the weight of five apples
Nice to see a MathGolf answer! To answer why there is a floor division by 4 operator, I had just implemented the ½ operator, and the next character in line was ¼. I knew it would be useful one of these days!
comment
The fastest Sudoku solver
Wow, this is really impressive! I noticed that you're using omp.h to solve all of the puzzles in parallel. It was a long time since I hosted this challenge, so I can't remember the exact verdict on parallelization, but your solution would be either the fastest or second fastest running single-threaded. I'll try to get this benchmarked to get you an official score!
awarded
revised
It was just a bug
added 174 characters in body
Loading…
comment
It was just a bug
Good catch! This was a long time ago, and I guess that I must've just thought that the outputs were identical.
comment
I'm a palindrome. Are you?
@KevinCruijssen you mean a count of occurrences (like Python's lst.count(x))? Unfortunately that's not included as of now. I haven't really had time to focus on the language in a while, but there are some unused bytes which could be used for new operators if I'm not mistaken.
comment
Random Golf of the Day #7: A distinctly random character
I found something that works... ▄v±√i§, saving exactly 0 characters.
comment
Random Golf of the Day #7: A distinctly random character
You're right, I just tried it and noticed that the residues weren't distributed over all 26 possible values. I tried some different things (like the cube/factorial/fibonacci operators), but I haven't had any luck yet. Trying to analyze vv* now (one byte longer, but should avoid some of the issues above)
comment
Random Golf of the Day #7: A distinctly random character
I haven't done the exact math on this, but since indexing repeats for indices that are higher than the length of a string/array (e.g. "abcd"9§ gives "b"), you could do something like ▄v²§ (link). Basically, get a random 32 bit integer, square it to skew the probabilities, and index the alphabet using the skewed random integer.
awarded
comment
The fastest Sudoku solver
Welcome to Code Golf! I'm not super familiar with typescript, but I'll try to boot up my old laptop and see if I can get it running!
revised
I'm a palindrome. Are you?
added 172 characters in body
Loading…
comment
I'm a palindrome. Are you?
@Lyxal I need to read the specification more closely, thanks for pointing it out!
answered
Loading…
1
2 3 4 5
40