↓ 6 callersMethodgetNumDecodingsNumber of decodings of one single character. If ' ', it can be any one between 1-9, 9 ways. If '0', it cannot be decoded, 0. Else just 1.
src/main/java/com/freetymekiyan/algorithms/level/hard/DecodeWays2.java:87
↓ 6 callersMethodnewIndexCreate an index mapping. [0, 1, 2, 3, 4, 5] -> [1, 3, 5, 0, 2, 4] [0, 1, 2, 3, 4, 5, 6] -> [1, 3, 5, 0, 2, 4, 6]
src/main/java/com/freetymekiyan/algorithms/level/medium/WiggleSort2.java:61
↓ 5 callersMethodsimplifyPathStack. Split path with slash, there can be 4 situations: 1) A correct name, push into stack. 2) A dot, skip. 3) Double dot, should pop last directory
src/main/java/com/freetymekiyan/algorithms/level/medium/SimplifyPath.java:51