20/30
Part 5 of 7 · No repeatsWatch
Watch · 11 min

LeetCode's Reorganize String, a cooldown of 1: no letter twice in a row. From 4:30 he takes the most frequent letter each time and puts the one he just used on hold, the same move as this part's skip of the title shown last. The code is from 8:17.

Reorganize String - Tesla Interview Question - Leetcode 767 - Python · NeetCode · Dec 2021YouTube