© 2022 Hashnode
#mathematics
I spent a good chunk of the past week traveling with my dog up the east coast of the US. Thanks to everyone who suggested content for the 20+ hours of driving. That being said, I did more thinking and…
Problem statement Given an integer n, return the number of strings of length n that consist only of vowels (a, e, i, o, u) and are lexicographically sorted. A string s is lexicographically sorted if f…
Video companion piece: https://www.youtube.com/watch?v=S4k3fGhCEI4 What is Subnetting? Hey everyone, I'm taking a small detour from my Dokku series to play with some numbers. 🦓 In this blog post, I'…
Problem statement: If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23. Find the sum of all the multiples of 3 or 5 below 1…
When I first heard about inferential statistics I was amazed by that topic, How can we take conclusions about the population with just samples of it? In some way it sounds like magic. Then someone tau…
Last time... In my last post, I spoke about the awesome inspiration I got when I saw after watching this awesome video about Bézier Curves. It made me want to try and implement this algorithm for codi…
Z3 has many uses, but a good fun use is solving puzzle games! Puzzle Team created a lot of nice online puzzles. They weirdly don't have one domain, and use a different domain for each puzzle. Maybe that's some advanced SEO trick. So let's g…
Pure functions are a part of functional programming paradigm Why pure functions? Clean code Easy to test and debug Decoupled and independent from the program so that we could use this as a utility fu…
In this article, we are going to explore How computers do the arithmetic operation perform in computer and how languages like C# and C++ will handle it. In C# if the Arithmetic overflow happens compil…
Problem Statement: We are provided with an array of length 'n', for the given array we have to return the sum of all XOR totals for every subset of an array. Example: array = [1,3] output = 6 Expl…