Fading Coder

One Final Commit for the Last Sprint

Core Algorithm Patterns: String Manipulation and Two-Pointer Techniques

ZigZag Conversion Transforming a string into a zigzag layout across a specified number of rows can be efficiently simulated. By iteraitng through each character and distributing it across a collection of buffers, we track the current row index. The traversal direction reverses automatically whenever...

Longest Substring Without Repeating Characters

Given a string s, determine the length of the longest substring that contains no repeating characters. Example 1: Input: s = "abcabcbb" Output: 3 Explanation: The answer is "abc", with the length of 3. Example 2: Input: s = "bbbbb" Output: 1 Explanation: The answer is &...