1. String Permutationshistorical

    Generate all string permutations using recursive backtracking, deduplicate them, and sort them lexicographically.

  2. First Non-Repeating Character in a Character Streamhistorical

    Use a map to count character occurrences while preserving input order to find the first character that appears only once in a stream.

  3. Left Rotate Stringhistorical

    Record two implementations of cyclic left rotation of a string: slicing and concatenation, and three reversals.

  4. Poker Straighthistorical

    Sort five cards, treat jokers as 0, and use the gaps between non-zero cards to determine whether they can form a straight.

  5. Replace Spaceshistorical

    Record two implementations for replacing spaces with %20: character-by-character concatenation and preallocated storage.

  6. Convert a String to an Integerhistorical

    Record character parsing and atoi implementations for converting a string to an integer.

  7. Reverse Word Orderhistorical

    Record methods for reversing word order by splitting the string and by reversing twice.