2MD

Optimized for leetcode