Claude Code Sub-Agents 完整指南:3大架構設計祕訣
Claude Code Sub-Agents 如何透過隔離與專業化設計革新開發流程?完整拆解架構機制與應用策略。馬上開始。
Claude Code Sub-Agents 完整指南:3大架構設計祕訣 阅读更多 ”
技术文章Claude Code Sub-Agents 如何透過隔離與專業化設計革新開發流程?完整拆解架構機制與應用策略。馬上開始。
Claude Code Sub-Agents 完整指南:3大架構設計祕訣 阅读更多 ”
技术文章MCP (Model Context Protocol) 是 Anthropic 推出、Google / OpenAI 都跟進的 AI 工具標準協定。如果你寫程式、做 SaaS、或想串接自家系統到 AI,這篇手把手教你。
MCP 是什麼?軟體工程師一篇文搞懂 AI 工具的標準協定 阅读更多 ”
技术文章A trie (pronounced as “try”) or prefix tree is a tree data structure used to efficiently store and retrieve keys in a dataset of strings. There are various applications of this data structure, such as autocomplete and spellchecker.
Implement the Trie class:
Trie() Initializes the trie object.
void insert(String word) Inserts the string word into the trie.
int countWordsEqualTo(String word) Returns the number of instances of the string word in the trie.
int countWordsStartingWith(String prefix) Returns the number of strings in the trie that have the string prefix as a prefix.
void erase(String word) Erases the string word from the trie.
[Leetcode] 1804. Implement Trie II 阅读更多 ”
Leetcode, 技术文章Given a string s containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.
An input string is valid if:
Open brackets must be closed by the same type of brackets.
Open brackets must be closed in the correct order.
Every close bracket has a corresponding open bracket of the same type.
[LeetCode] 0020. Valid Parentheses 阅读更多 ”
Leetcode, 技术文章Given an mxn board of characters and a list of strings words, return all words on the board.
Each word must be constructed from letters of sequentially adjacent cells, where adjacent cells are horizontally or vertically neighboring. The same letter cell may not be used more than once in a word.
[Leetcode] 0212. Word Search II 阅读更多 ”
Leetcode, 技术文章Design a data structure that supports adding new words and finding if a string matches any previously added string.
Implement the WordDictionary class:
WordDictionary() Initializes the object.
void addWord(word) Adds word to the data structure, it can be matched later.
bool search(word) Returns true if there is any string in the data structure that matches word or false otherwise. word may contain dots '.' where dots can be matched with any letter.
[Leetcode] 0211. Design Add and Search Words Data Structure 阅读更多 ”
Leetcode, 技术文章A trie (pronounced as “try”) or prefix tree is a tree data structure used to efficiently store and retrieve keys in a dataset of strings. There are various applications of this data structure, such as autocomplete and spellchecker.
Implement the Trie class:
Trie() Initializes the trie object.
void insert(String word) Inserts the string word into the trie.
boolean search(String word) Returns true if the string word is in the trie (ie, was inserted before), and false otherwise.
boolean startsWith(String prefix) Returns true if there is a previously inserted string word that has the prefix prefix, and false otherwise.
[Leetcode] 0208. Implement Trie 阅读更多 ”
Leetcode, 技术文章Given a binary search tree (BST), find the lowest common ancestor (LCA) node of two given nodes in the BST.
According to the definition of LCA on Wikipedia: “The lowest common ancestor is defined between two nodes p and q as the lowest node in T that has both p and q as descendants (where we allow a node to be a descendant of itself).”
[Leetcode] 0235. Lowest Common Ancestor of a Binary Search Tree 阅读更多 ”
Leetcode, 技术文章Given the root of a binary search tree, and an integer k, return the kth smallest value (1-indexed) of all the values of the nodes in the tree.
[Leetcode] 0230. Kth Smallest Element in a BST 阅读更多 ”
Leetcode, 技术文章Given the root of a binary tree, determine if it is a valid binary search tree (BST).
A valid BST is defined as follows:
The left subtree of a node contains only nodes with keys less than the node's key.
The right subtree of a node contains only nodes with keys greater than the node's key.
Both the left and right subtrees must also be binary search trees.
[Leetcode] 0098. Validate Binary Search Tree 阅读更多 ”
Leetcode, 技术文章