Write-ups

I try to put some articles that might be useful for you. Stay tuned!

Advent of Code(golf) 2025

12 December 2025

I have been doing Advent of Code (AOC) since 2021 and have completed all questions from 2015 as of writing this article. While the initial goal was to learn new languages (like Haskell and Rust), I...

Fast Fourier Transform Made Easy!

2 December 2025

It all started back in 2021 when I saw this problem on Kattis that asks you to multiply two polynomials. Given the constraints, directly multiplying them (like how people would in mathematics...

Graph Realization Made Easy!

3 November 2025

This article serves as a detailed breakdown of the code provided in pytils. The degree sequence of a graph is defined as a non-increasing sequence of the graph's vertex degrees, where the degree of...

Clash of Champions Season 2, Pythonized

30 September 2025

It's been a month since the second season of Clash of Champions' final episode. While the games were entertaining and the questions were interesting to try out along, I decided to take things up a...

Telebot army is an absolute cinema

6 August 2025

It was the COVID era where everything was online, thus the rise of Telegram scammers trying to add random users to a particular set of scam and/or spam investment group chats. It was very...

Kattis of the Week

4 September 2024

Since I am no longer teaching CS2040 (Data Structures and Algorithms) as an undergraduate teaching assistant in NUS, I thought it would be nice to dump some additional Kattis problems here...

Fenwick Trees Made Easy!

28 July 2024

Let's start with an array $A$ of size $N$, each entry is initially zero. Suppose that over time, I want to support these operations on the array: We can do this naively with a single for loop,...

Pareto Fronts Made Easy!

22 July 2024

Suppose you have a set $S$ of $N$ different objects, each object having different scores for a particular set of metrics. Suppose we ask ourselves this question: How does one select as many objects...

The Nine-point Circle

28 February 2024

Let us start off with a simple triangle $\triangle ABC$. We draw the altitudes for each respective vertex, intersecting the corresponding sides at $H_A, H_B, H_C$. It is a well-known fact that...

Uni Interview Prep

14 January 2024

The original article was written in 23 June 2020 and was written mainly based on my own opinion. I will mainly discuss about NUS and NTU scholarships interviews. Other universities' may go the same...