Problem I’m pretty sure my code is mostly correct. I think I’m having formatting errors more than anything. I keep […]
Tag: integer
StrictInt’ Python object class that prohibits casting numbers with non-integer components to `int`
Problem Inspired by and created because of python3 utility: convert safely to int and driven partly by the ‘refactor’ in […]
Test if a number is within 2 of a multiple of 10
Problem I have solved this exercise, but it looks really redundant. Is there a built-in function in Java or a […]
Multiple base numbers parser
Problem This code is a Parser that parses numbers according to R5RS. #b1001 – binary #o2127 – octal #h02d – […]
Extract and divide algorithm implementation in Elixir
Problem I just started learning Elixir and stumbled upon this challenge over on Programming Puzzles & Code Golf. It is […]
A simple Java integer hash set
Problem (See the next version.) The following data structure implements a hash table based set for int values: com.github.coderodde.util.IntHashSet package […]
Simple Java program – Coding bat sumNumbers
Problem The problem is stated as follows: Given a string, return the sum of the numbers appearing in the string, […]
LEB128 in Haskell
Problem I have implemented the LEB128 encoding for unsigned integers. I’m fairly new to Haskell so I have some doubt […]
All-in-one number base converter
Problem I coded this program as a challenge for /r/dailyprogrammer. Basically this program can convert any number from any base […]
Tuple replacement
Problem I use the following structure in a web service where performance is critical. It is used for making joins […]