randv | 2 months ago | on: Microsoft Agent Framework
randv's comments
randv | 1 year ago | on: Planes in 3D Space
randv | 3 years ago | on: Sam Bankman-Fried Has a Savior Complex—And Maybe You Should Too
randv | 4 years ago | on: A regular expression to check for prime numbers (2007)
- it is turning the number into a string of 1s 3 => 111 4 => 1111 and so on
- then trying to simulate divisibility test by trying to find perfect groups of '11' to simulate division by 2 failing which (that is the backtracking part) and trying find perfect groups of '111' to simulate division by 3 and so on...
Clever but very inefficient
randv | 4 years ago | on: A regular expression to check for prime numbers (2007)
- then trying to simulate divisibility test by trying to find perfect groups of '11' to simulate division by 2 failing which (that is the backtracking part) and trying find perfect groups of '111' to simulate division by 3 and so on...
Clever but very inefficient
randv | 4 years ago | on: A regular expression to check for prime numbers (2007)
it is basically trying to group by 11 (divide by 2), if there no match (via backtracking) group by 111 (divide by 3) and so on
not very efficient by any stretch esp with string matches.
randv | 12 years ago | on: 2048 implemented in 487 bytes of C
randv | 12 years ago | on: A glimpse of undefined behavior in C
the answer will be different in different compilers. I use this as an interview question ever since, not to get the right answer but to understand the candidates thought process in solving the problem and his/her understanding of operator precedence :-)
randv | 13 years ago | on: Math notes to take you from one year of college calculus to grad student level
randv | 13 years ago | on: Am I An Outlier, Or Are Apple Products No Longer Easy To Use?
randv | 16 years ago | on: Founder of ZOHO Gives Bootstrapping Tips on Mixergy
randv | 16 years ago | on: Don't give money [that's restricted] to Haiti
randv | 16 years ago | on: The Dark Side of Customer Development and Lean Startups