Cache Replacement — 18 Aug 2021
It is said that “There are two hard things in computer science: cache invalidation, naming things, and off-by-one errors.” This post will be on the first one.
Memoization by Way of Functional Programming — 05 Aug 2021
In this post, I explore the concept of memoization and show how it can be a useful technique when dealing with computationally intensive functions that need to be called multiple times in a program.
Higher Order Functions — 11 Jul 2021
In this post, I explore the concept of higher-order functions and discuss three common examples of higher-order functions.
Crisp: A Simple Lisp Interpreter — 24 Aug 2021
Implementing Graphs — 13 Aug 2021
A graph is an data structure consisting of a set of vertices, each of which are connected to one or more other vertices. In this post, I explore this data structure and implement some of its common operations.
Implementing Binary Search — 04 Aug 2021
In this post, I write about how I solved a LeetCode problem that required implementation of binary search in a sorted array.
Implementing Stacks — 30 Jul 2021
Stack is a common data structure that is often used to retrieve and insert data items in a specific order. In this post, I will implement some of the common operations involving stacks.
Implementing Linked Lists — 28 Jul 2021
In the previous post, I wrote about the concept of linked lists and how they are different from arrays. In this post, I write about some of the basic operations that can be carried out on a linked list.
Linked Lists and Arrays — 27 Jul 2021
In this post, I attempt to understand two of the simplest data structures: arrays and linked lists. But before that, I try to see what a ‘data structure’ actually means.
Valid Parenthesis — 25 Jul 2021
In this post, I discuss how I solved a problem on LeetCode on the correct order of Parentheses.
Palindrome — 20 Jul 2021
In this post, I discuss my experience of solving my very first problem on LeetCode.
Defining functions — 10 Jul 2021
Understanding const and Immutability — 09 Jul 2021
Understanding var and let — 08 Jul 2021
The keywords var and let can both be used to declare variables. But are there any differences between the two?
Understanding Global and Local Variables — 07 Jul 2021
In this post, I will briefly analyse the manner and implications of declaring a variable as a local variable and a global variable.
Converting Strings to integers! — 06 Jul 2021
Strings and integers are two different types of data structures. But how to convert one into the other?
First Milestone — 01 Jul 2021
Preparing to take-off — 17 Jun 2021
Now that Linux is ready, I needed to install VS Code so that I can save the programs I write in the days to come.
Prologue — 14 Jun 2021
I am a lawyer with three years’ of post-qualification experience. But I want to learn how to code. Here’s why.
Installing Linux — 15 Jun 2021
Today, I took some of the first tangible steps into the world of Computer Science: with the help of my brother, I installed Linux on my old Laptop.