File tree 2 files changed +2
-2
lines changed
src/main/java/com/fishercoder/solutions
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -363,7 +363,7 @@ Your ideas/fixes/algorithms are more than welcome!
363
363
| 229| [ Majority Element II] ( https://leetcode.com/problems/majority-element-ii/ ) | [ Solution] ( ../master/src/main/java/com/fishercoder/solutions/MajorityElementII.java ) | O(n)| O(n) | Medium|
364
364
|228|[ Summary Ranges] ( https://leetcode.com/problems/summary-ranges/ ) |[ Solution] ( ../master/src/main/java/com/fishercoder/solutions/_228.java ) | O(n)|O(1) | Medium| Array
365
365
|227|[ Basic Calculator II] ( https://leetcode.com/problems/basic-calculator-ii/ ) |[ Solution] ( ../master/src/main/java/com/fishercoder/solutions/_227.java ) | O(n)|O(n) | Medium| String
366
- |226|[ Invert Binary Tree] ( https://leetcode.com/problems/invert-binary-tree/ ) |[ Solution] ( ../master/src/main/java/com/fishercoder/solutions/InvertBinaryTree .java ) | O(n)|O(h) | Easy| DFS, recursion
366
+ |226|[ Invert Binary Tree] ( https://leetcode.com/problems/invert-binary-tree/ ) |[ Solution] ( ../master/src/main/java/com/fishercoder/solutions/_226 .java ) | O(n)|O(h) | Easy| DFS, recursion
367
367
|225|[ Implement Stack using Queues] ( https://leetcode.com/problems/implement-stack-using-queues/ ) |[ Solution] ( ../master/src/main/java/com/fishercoder/solutions/ImplementStackUsingQueues.java ) | O(n)|O(n) | Easy| Stack, Queue
368
368
| 224| [ Basic Calculator] ( https://leetcode.com/problems/basic-calculator/ ) | [ Solution] ( ../master/src/main/java/com/fishercoder/solutions/_224.java ) | ?| ? | Hard|
369
369
| 223| [ Rectangle Area] ( https://leetcode.com/problems/rectangle-area/ ) | [ Solution] ( ../master/src/main/java/com/fishercoder/solutions/_223.java ) | O(1)| O(1) | Easy|
Original file line number Diff line number Diff line change 29
29
This problem was inspired by this original tweet by Max Howell:
30
30
31
31
Google: 90% of our engineers use the software you wrote (Homebrew), but you can�t invert a binary tree on a whiteboard so fuck off.*/
32
- public class InvertBinaryTree {
32
+ public class _226 {
33
33
34
34
public TreeNode invertTree_Editorial_solution_iterative (TreeNode root ){
35
35
if (root == null ) return root ;
You can’t perform that action at this time.
0 commit comments