Learn Functional Python in 10 Minutes

In this short 10 minute article, you鈥檒l learn what the functional paradigm is in Python. You鈥檒l also learn about list comprehensions. 馃搶 Functional Paradigm In an imperative paradigm, we do things by giving the computer a sequence of tasks and then it executes them. While executing them, it can change states. For example, let鈥檚 say we set A = 5, then we change the value of A. We have variables in the sense that the value inside the variable varies....

November 30, 2020 路 14 min 路 Bee

Algorithmic Design Paradigms

Greedy Algorithms Greedy algorithms aim to make the optimal choice at that given moment. Each step it chooses the optimal choice, without knowing the future. It attempts to find the globally optimal way to solve the entire problem using this method. Why Are Greedy Algorithms Called Greedy? Algorithms are called greedy when they utilise the greedy property. The greedy property is: At that exact moment in time, what is the optimal choice to make?...

November 1, 2020 路 52 min 路 Bee

Python Zero to Hero

What is Python? Python is a programming language created by Guido (pronounced gree-do) Van Rossum. Specifically, Python is an intrepreted, high-level, general purpose programming language. Let鈥檚 talk about what these mean. General Purpose General Purpose means that Python was created to do everything. Some programming languages like Matlab or R were created for data science. Others like HTML / CSS were created for web development. Python aims to do everything, it is generalised....

October 1, 2020 路 11 min 路 Bee

Set Theory for Programmers

Set Theory If you鈥檝e spent time on HackerRank or LeetCode, you might have noticed most of the optimal solutions use Set Theory. By reading this article, you will gain a deeper knowledge into set theory and how to use it to create optimal algorithms. Set Theory was invented (or found, depending on how you view maths) by George Cantor. It revolves around the idea of sets, as in collections of objects....

January 29, 2019 路 10 min 路 Bee