This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Specific conditions: | |
| - input: `oldString` and `newString` (e.g. `'old same'` and `'same new'`) | |
| - output format: `'(old )same[ new]'` | |
| - return diff of min length, not counting `()[]` | |
| - return diff which is min among all diff variants by lexicographical order, with one remark: consider `\w` < `()` < `[]` | |
| Taken from CodeFights: Dropbox bot challange. | |
| */ |
OlderNewer