Skip to content

Instantly share code, notes, and snippets.

View jcoding09's full-sized avatar
🌴
I may be slow to respond.

jcoding09

🌴
I may be slow to respond.
View GitHub Profile

Competitive programming requires a mix of theoretical math proofs and highly optimized implementation tricks, a single platform or book rarely covers everything perfectly.

To master the topics outlined in the roadmap (cp_dsa_roadmap.pdf) and the master syllabus (complete_cp_master_syllabus.pdf), you should use a targeted mix of the following world-class sources depending on what type of topic you are studying:


1. For Advanced Data Structures & Offline Techniques (e.g., CDQ, Segment Tree Beats, Mo's)

  • CP-Algorithms (cp-algorithms.com): This is the definitive holy grail for competitive programming. It explains highly complex topics with exact mathematical breakdowns and optimized C++ code implementations. It is ideal for mastering range query modifications and dimensional reductions like CDQ Divide and Conquer.

The Three Mental Traps:

  1. "I'll start when I feel ready" (0:10-0:37): The speaker explains that waiting for a feeling of readiness is a mistake because readiness is not a feeling—it is a result of action. Starting creates the necessary momentum and confidence.

  2. "I need more clarity before I start" (0:38-1:03): This trap often masks itself as being strategic or organized. The speaker notes that true clarity comes from testing and taking action (getting "reps" in) rather than just thinking or planning, which can become a form of stalling.

  3. "I'll be consistent when life calms down" (1:04-1:30): Life rarely stops being chaotic; instead, it simply changes forms. The speaker emphasizes the importance of building structure and consistency within the chaos rather than waiting for a perfect, quiet moment that never arrives.

Give me the optimal solution for the LeetCode problem (I will paste the link of the actual problem) (avoid brute force) in GoLang. Just remove the main() function and only provide the required function.

Explain it step-by-step like a worked example (similar to a math problem).

Include:

  • Intuition
  • Why brute force is inefficient
  • The optimal approach
@jcoding09
jcoding09 / llm-wiki.md
Created April 4, 2026 17:52 — forked from karpathy/llm-wiki.md
llm-wiki

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

Location
https://jwl-7.github.io/leetcode-cheatsheet/#array-two-pointers-one-input
https://github.com/bhavul/System-Design-Cheatsheet
https://bhavul.github.io/System-Design-Cheatsheet/
https://github.com/avgspacelover/Reddit-wiki-programming
https://github.com/seanprashad/leetcode-patterns
https://seanprashad.com/leetcode-patterns/
https://github.com/jcoding09?tab=repositories
https://github.com/karanpratapsingh/system-design

Prompt:

I need a production-ready Linux shell script to perform a silent installation using IBM Installation Manager (imcl).

Requirements:

  • The installation must use a response file located in the Downloads directory, and the command will be executed from that directory only.
  • The response file references a remote, password-protected repository (HTTP/HTTPS).
  • Repository credentials must be handled securely (no hard-coded credentials in the response file).
@jcoding09
jcoding09 / amazon.md
Created March 29, 2025 13:58 — forked from terabyte/amazon.md
Amazon's Build System

Prologue

I wrote this answer on stackexchange, here: https://stackoverflow.com/posts/12597919/

It was wrongly deleted for containing "proprietary information" years later. I think that's bullshit so I am posting it here. Come at me.

The Question

Amazon is a SOA system with 100s of services (or so says Amazon Chief Technology Officer Werner Vogels). How do they handle build and release?

@jcoding09
jcoding09 / Reactjsnodejango.txt
Created November 10, 2024 03:17
Front end learning resources
- Code with Stein -> Django + Vue
- Tech with Tim, CodingEntrepreneurs, Dennis Ivy -> Django + React
- Very Academy -> Django + Next.js or Django + React (the best on Youtube when it comes to Django in my opinion)
There is also Mosh Hamedani who released a series on Django including Django DRF.
He goes much more in-depth than Maximilian (caching with Redis and background tasks with Celery + advanced ORM techniques). I highly recommend it!
body {
font-family: "Geist_mono", monospace;
}
h1,
h2,
h3,
h4,
h5,