These are my solutions to Leetcode problems in Java 8. I have tried to keep the solutions clear and concise, but there might be opportunities for improvement. In that case, just send me a PR.
Problem ID | Problem | Solution | Space Complexity | Time Complexity | Runtime (ms) |
---|---|---|---|---|---|
765 | Couples Holding Hands | Click | O(n) | O(n) | 5 |
297 | Serialize and Deserialize Binary Tree | Click | O(n) | O(n) | 17 |
72 | Edit Distance | Click | O(m * n) | O(m * n) | 14 |
23 | Merge k Sorted Lists | Click | O(n) | O(1) | 14 |