This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Workflow Orchestration | |
| ## 1. Plan Mode Default | |
| - Enter plan mode for ANY non-trivial task (3+ steps or architectural decisions) | |
| - If something goes sideways, STOP and re-plan immediately — don't keep pushing | |
| - Use plan mode for verification steps, not just building | |
| - Write detailed specs upfront to reduce ambiguity | |
| ## 2. Subagent Strategy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // brute force | |
| function arrayManipulation(arr, n) { | |
| const temp = new Array(n).fill(0); | |
| for (let i = 0; i < arr.length; i++) { | |
| for (let index = arr[i][0]; index <= arr[i][1]; index++) { | |
| temp[index - 1] += arr[i][2] | |
| } | |
| } | |
| console.log( Math.max(...temp)) | |
| } |