|
You are here |
algorithmsoup.wordpress.com | ||
| | | | |
uncommongenders.home.blog
|
|
| | | | | There is lettragender! -Admin Opal | |
| | | | |
thekittymaths.wordpress.com
|
|
| | | | | A Compendium of Cool Internet Math Things | |
| | | | |
kobikobi.wordpress.com
|
|
| | | | | It's very easy to check a decimal number is divisible by three using a simple DFA with 3 states. A regex, therefor, is possible, but not too pretty (source): Example: http://www.rubular.com/r/ZcRDblHg8M Here's another approach, using .Net's stacks as a simple counter: Why? Well, I was bored while I shaved. Luckily, this regex is simple enough... | |
| | | | |
cardinalguzman.wordpress.com
|
|
| | | Encyclopedia Miscellaneous - 'quality' blogging since August 2011 | ||