Using Bit Manipulation to store the occurrence of characters with constant extra space
Apr 8, 2023 · 7 min read · Problem Link: Leetcode 2405: Optimal Partition of String Problem Statement: Note: Input string can have only lowercase characters. Understanding the problem: A substring is a contiguous sequence of characters within the string. Thus, the longest su...
Join discussion

