Write-ups

×

Build a GeoGuessr Clone with Firebase Studio

1 January 2026 • 18 minutes read

Happy new year, everyone! I'm kicking off the year by sticking to my monthly writing goal in this website. I think it's a good way of documenting the interesting things I encountered during my...

Advent of Code(golf) 2025

12 December 2025 • 40 minutes read

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 • 30 minutes read

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 • 27 minutes read

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 • 17 minutes read

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 • 7 minutes read

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...

Why Python recursion sucks for competitive programming

1 July 2025 • 9 minutes read

Having done several competitive programming (CP) problems in pure Python, it is safe to say that recursion is worse for most instances, especially for problems with tight memory or time limit....

Kattis of the Week

4 September 2024 • 11 minutes read

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 • 7 minutes read

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 • 5 minutes read

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 • 3 minutes read

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 • 10 minutes read

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...