Dev
leetcode questions: Backtracking
Template def backtrack(candidate): if find_solution(candidate): output(candidate) return # iterate all possible candidates. for next_candidate in list_of_candid
read moreleetcode questions: BFS
BFS Template /** * Return the length of the shortest path between root and target node. */ int BFS(Node root, Node target) { Queue<Node> queue; // store all nodes which are waiting
read moreleetcode questions: DFS
DFS Templates Template 1: /* * Return true if there is a path from cur to target. */ boolean DFS(Node cur, Node target, Set<Node> visited) { return true if cur is target; for (
read moreleetcode questions: dynamic programming
Intro Good video: Dynamic Programming - Learn to Solve Algorithmic Problems & Coding Challenges - YouTube DP is a style of coding where you store t
read moreLeetcode: LinkedList in Python
create a dummy nodeMerge two linked lists.# Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = Nonecla
read morePython list/dict functions for leetcode
Listlen(array) : length of array list.index(obj)enumerate(array) : adds counter at the beginning. for count, item in enumerate(['x','y','z']) # 0x 1y 2z`range(0,len(mylis
read moreCategories
Tags
- Astro
- Documentation
- Writing
- Codex
- Tmux
- Ssh
- Tailscale
- Termius
- Java
- Design patterns
- Python
- Array
- Leetcode summary
- Backtracking
- Dfs
- Bfs
- Binary search
- Bit
- Dp
- Graph
- Linked list
- Hash table
- String
- Trie
- Localization
- Product engineering
- Ux
- Ai
- Mcp
- Product safety
- Api
- Openapi
- Zod
- Postgresql
- Background jobs
- Ui
- Drag and drop
- Prisma
- Data modeling
- React router
- Full stack
- Design system
- Tables
- Linux
- Input methods
- Rime
- Trackball
- Xorg
- Koreader
- Self hosting
- Vercel ai sdk
- Architecture
- Dependency cruiser
- Testing
- Vitest
- Playwright
- Warwick
- Hpc
- Data mining
- Data analysis
- Sensor networks
- Nlp
- Typescript