摘要:
Greedy approach: function LIS(nums) { if (nums.length 0) return []; // 先取得第一项 const results = [[nums[0]]]; for (let i = 1; i < nums.length; i++) { con 阅读全文
摘要:
Manually staging files, writing commit messages, committing, and syncing to Git involves multiple repetitive steps. This lesson demonstrates how to si 阅读全文
摘要:
In development we often want to test out features we are building but can only do so with deployed or staging applications or setting up Ngrok or Clou 阅读全文
摘要:
Planning complex application logic or workflows before coding can be challenging. This lesson demonstrates how to leverage Cursor's AI (Chat and Agent 阅读全文
摘要:
Writing clear and effective prompts or rules for AI (.mdc files in Cursor) can be tricky. Your instructions might start out clumsy or ambiguous, leadi 阅读全文
摘要:
We have new Arrayin Javascript const arr1 = new Array(3) // create an empty array with lengh 3 const arr2 = new Array(1,2,3) // create an array with v 阅读全文
摘要:
It can be a performance bottleneck if you frequently add/remove event listener bind to a DOM element. patchProps(el, key, prevValue, nextValue) { if ( 阅读全文