The first time I use async generator in production code
I used to work for a company that provides exhibition and social event management services. A core feature of our SAAS platform is allowing user to launch email campai...
Archive
The archive keeps the folder-based structure from the original repo, but now gets a proper content layer, metadata handling, and static generation pipeline.
I used to work for a company that provides exhibition and social event management services. A core feature of our SAAS platform is allowing user to launch email campai...
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...
Me: this is the log: Does the log output make sense to you? ChatGPT: Yes, the output makes sense based on how your maze is generated and solved. Breakdown: Maze Genera...
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...
- 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...
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...
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...
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...
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...
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...
$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...
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...