tips:fast slow pointer
Runtime:faster than 90.01%
Memory Usage:less than 76.39%
tips:binary search
Runtime:faster than 99.60%
Memory Usage:less than 98.08%
tips: manacher
Runtime:faster than 82.83%
Memory Usage:less than 61.40%
tips:dynamic programming
Runtime:faster than 100.00%
Memory Usage:less than 72.15%
tips:priority_queue
Runtime:faster than 94.18%
Memory Usage:less than 91.47%
tips:dynamic programming
Runtime:faster than 88.50%
Memory Usage:less than 72.42%
tips:DFS+Backtracking
Runtime:faster than 100.00%
Memory Usage:less than 94.95%
tips:stack
Runtime:faster than 100.00%
Memory Usage:less than 85.90%
tips:dynamic programming
Runtime:faster than 56.60%
Memory Usage:less than 54.95%
tips:greedy
Runtime:faster than 98.73%
Memory Usage:less than 99.24%
tips:greedy
Runtime:faster than 99.93%
Memory Usage:less than 95.47%
tips:math
Runtime:faster than 100.00%
Memory Usage:less than 93.96%
tips:dynamic programming
Runtime:faster than 56.16%
Memory Usage:less than 52.66%
tips:no tips
Runtime:faster than 100.00%
Memory Usage:less than 15.88%
tips:fast slow pointer
Runtime:faster than 87.98%
Memory Usage:less than 87.56%
tips:dfs
Runtime:faster than 100.00%
Memory Usage:less than 10.96%
tips:stack
Runtime:faster than 71.30%
Memory Usage:less than 65.54%
tips:stack
Runtime:faster than 53.71%
Memory Usage:less than 40.75%
tips:dynamic programming
Runtime:faster than 100.00%
Memory Usage:less than 50.71%
tips:list
Runtime:faster than 100.00%
Memory Usage:less than 91.76%
tips:dynamic programming or bfs
Runtime:faster than 100.00%
Memory Usage:less than 48.63%
tips:tree
Runtime:faster than 99.69%
Memory Usage:less than 51.40%
tips:dynamic programming or bfs
Runtime:faster than 83.27%
Memory Usage:less than 77.04%
tips:dynamic programming
Runtime:faster than 16.90%
Memory Usage:less than 90.49%
tips:dynamic programming
Runtime:faster than 64.93%
Memory Usage:less than 92.09%
tips:hash map
Runtime:faster than 40.45%
Memory Usage:less than 7.41%
tips:dfs and cache
Runtime:faster than 100.00%
Memory Usage:less than 27.04%
tips:tree
Runtime:faster than 100.00%
Memory Usage:less than 82.35%
tips:hash map and list
Runtime:faster than 14.56%
Memory Usage:less than 77.94%
tips:divide and conquer
Runtime:faster than 100.00%
Memory Usage:less than 67.04%
tips:divide and conquer
Runtime:faster than 90.14%
Memory Usage:less than 54.05%
tips:bucket
Runtime:faster than 5.01%
Memory Usage:less than 5.29%
tips:dynamic programming
Runtime:faster than 100.00%
Memory Usage:less than 90.20%
tips:dynamic programming
Runtime:faster than 94.53%
Memory Usage:less than 22.12%
tips:dynamic programming
Runtime:faster than 94.53%
Memory Usage:less than 22.12%
tips:math
Runtime:faster than 40.11%
Memory Usage:less than 71.58%
tips:binary search
Runtime:faster than 68.80%
Memory Usage:less than 70.39%
tips:math
Runtime:faster than 100.00%
Memory Usage:less than 84.36%
tips:dfs
Runtime:faster than 58.46%
Memory Usage:less than 76.74%
tips:deque
Runtime:faster than 70.94%
Memory Usage:less than 6.67%
tips:unordered_map+list+list
Runtime:faster than 79.61%
Memory Usage:less than 82.85%
tips:math+tree
Runtime:faster than 100.00%
Memory Usage:less than 5.56%
tips:dynamic programming
Runtime:faster than 92.95%
Memory Usage:less than 82.37%
tips:tree
Runtime:faster than 89.25%
Memory Usage:less than 52.07%
tips:math
Runtime:faster than 100.00%
Memory Usage:less than 89.39%
tips:dictionary tree
Runtime:faster than 31.59%
Memory Usage:less than 43.51%
tips:binary indexed tree
Runtime:faster than 73.72%
Memory Usage:less than 65.86%
tips:fast slow pointer
Runtime:faster than 96.69%
Memory Usage:less than 76.47%
tips:dynamic programming
Runtime:faster than 76.58%
Memory Usage:less than 96.84%
tips:unionfind
Runtime:faster than 94.46%
Memory Usage:less than 90.07%
tips:bfs
Runtime:faster than 86.12%
Memory Usage:less than 74.78%
tips:dfs+graph
Runtime:faster than 89.67%
Memory Usage:less than 96.38%
tips:dynamic programming+math
Runtime:faster than 100.00%
Memory Usage:less than 36.28%
tips: no tips
Runtime:faster than 99.45%
Memory Usage:less than 88.76%
tips:dynamic programming
Runtime:faster than 100.00%
Memory Usage:less than 44.72%