LeetCode 937: Reorder Data in Log Files
Problem Restatement We are given a list of log strings. Each log has this structure: identifier content The first word is the identifier. The rest of the log is the content. There are two kinds of logs: Log type Meaning Letter-log Every word after the identifier contains lowercase letters Digit-log Every word after the identifier contains digits We need to reorder the logs using these rules: All letter-logs come before...