Archive

Writing organized by topic, not by CMS ceremony.

The archive keeps the folder-based structure from the original repo, but now gets a proper content layer, metadata handling, and static generation pipeline.

Work Related

1 posts

Db

1 posts
Db 2 min read

DynamoDB

It is a key-value store like an object. Primary key It is a unique identifier for a item in a table. It is the "key" of the item. It must contain a partition key and a...

Db

Dsa

8 posts
Dsa 1 min read

Backtracking 🤯

https://leetcode.com/problems/subsets/ Given an integer array nums of unique elements, return all possible subsets (the power set). The solution set must not contain d...

DsaBacktracking
Dsa 1 min read

Problem

- Write a function that takes in an array of flight objects, a fare limit, and a flight origin, - return an array of flight destinations that with the fare not higher...

DsaGraph
Dsa 1 min read

MinHeap

A min-heap is a binary tree where each node is less than or equal to its children. The root of the tree is the smallest element in the heap. Since it is always a full...

DsaHeap
Dsa 1 min read

min heap vs max heap

MaxHeap is good for keeping track of the k smallest items MinHeap is good for keeping track of the k largest items Why? Because the root of a heap is the most accessib...

DsaHeap
Dsa 1 min read

Real-world Problem

Part 1: Static File You are given a static log file containing billions of entries. Each entry contains a timestamp and the name of a food order. The entries in the lo...

DsaHeap
Dsa 1 min read

LRU caching

Why use dummy nodes head and tail? - Use dummy node and to reducee edge case when head or tail is null. - Can easily retrieve MRU by and LRU by Mental model when movin...

DsaLinked List
Dsa 2 min read

Quadratic vs exponential vs factorials

Quadratic Complexity - O(n²) Quadratic complexity means that the runtime grows proportionally to the square of the input size. For example: - If n = 10, operations ≈ 1...

Dsa

Js

1 posts
Js 1 min read

WeakMap and WeakSet

$1 WeakMap only has these instance methods: A weakmap can't tell how big it is, and can't keep order of keys like Object. - Map/WeakMap/Object all can use object as ke...

Js

Thoughts

1 posts
Thoughts 2 min read

🧠 What Should LLM-Facing Developers Know?

If building for the internet was the mainstream in the past 20 years, building for LLMs might be the future. Just like how web developers don't need to know the low-le...

Thoughts