-
[OpenAI Academy] Prompting
Summary 3 Key Factors of Prompting Prompt Examples Advanced Prompt Engineering 1. Delimiters 2. Step-by-step instructions 3. Shot prompting 4. Ask ChatGPT for prompt How to structure the prompts Reference Read more
-
Container With Most Water
Problem https://leetcode.com/problems/container-with-most-water/description/ Solution Read more
-
Rate Limiter #3 – Sliding Window Algorithm
Advantages / Disadvantages Advantages Disadvantages Implementation Implementation – Output FollowUp Questions #1. How does your Sliding Window Counter implementation handle memory consumption, especially with high request rates or large window sizes? Are there optimizations to reduce memory usage? #2. The same FollowUp Question #1~#5 in https://willtheguruhome.wordpress.com/2025/01/12/rate-limiter-token-bucket-algorithm/ is possible Read more
-
Rate Limiter #2 – Leaky Bucket Algorithm
Advantages / Disadvantages Advantages Disadvantages Implementation Implementation – Output FollowUp Question #1. In your outflow() method, you calculate secondsSinceOutflow by dividing the time difference in milliseconds by 1_000. Is this approach accurate for refilling the bucket? Why or why not? #2. How efficient is your LeakyBucketRateLimiter implementation in terms of time and space complexity? Are Read more
- AI (1)
- Algorithm (96)
- Ideas (26)
- Problems (79)
- Backtracking (12)
- Dynamic Programming (14)
- Greedy (1)
- Queue & Stack (14)
- BFS & DFS (9)
- Recursion (6)
- _Others (33)
- Blockchain (5)
- Database (1)
- DevOps (1)
- Java (40)
- Linux (1)
- Network (1)
- Operating System (2)
- Programming (1)
- Spring (9)
- System Design (24)
- Uncategorized (1)
- Web (2)
Availability (2) Binary Search Tree (2) Consistency (2) Design Doc (1) DFS (3) Durability (2) Dynamic Programming (4) Graph (7) HashMap (3) Linked List (3) List (2) Monotonic (3) MSA (2) Performance (2) Prefix Sum (4) Rate Limiter (3) Replication (2) Scalability (3) Sliding Window (8) System Design (22) Thread (2) Trie (3) Two Pointers (3) Union-Find (6) WebSocket (2) ⭐️ (6) ⭐️⭐️ (4) ⭐️⭐️⭐️ (11) ⭐️⭐️⭐️⭐️ (24) ⭐️⭐️⭐️⭐️⭐️ (41)
