Logic first, as pseudocode
Gets the algorithm in plain steps before any real code.
Claude 'slash codes': Coding / Tech
Write pseudocode for [PROBLEM OR FEATURE]. Plain numbered steps, no language-specific syntax. Show inputs, outputs, the main loop or recursion, and how edge cases are handled: empty input, very large input, invalid input. After the pseudocode, state the time and space complexity in one line each.