從摸索跟不斷追尋下,我理解到課表需要修正,由於週三一直都是去復健,而去健身房時間大約只能做
3個動作,我規劃了一天上肢/下肢各兩個動作,搭配一個胸腹,這份課表目的是變成上下分化訓練,在某部分痠痛時訓練另一半。
94. Binary Tree Inorder Traversal
Given the root of a binary tree, return the inorder traversal of its nodes’ values.
Example 1:
1 | Input: root = [1,null,2,3] |
Example 2:
1 | Input: root = [] |
Example 3:
1 | Input: root = [1] |
Example 4:
1 | Input: root = [1,2] |
Example 5:
1 | Input: root = [1,null,2] |
JP Saxe - If the World Was Ending ft. Julia Michaels
155. Min Stack
Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.
push(x) – Push element x onto stack.
pop() – Removes the element on top of the stack.
top() – Get the top element.
getMin() – Retrieve the minimum element in the stack.
Example 1:
1 | Input |
Explanation
1 | MinStack minStack = new MinStack(); |
328. Odd Even Linked List
Given a singly linked list, group all odd nodes together followed by the even nodes. Please note here we are talking about the node number and not the value in the nodes.
You should try to do it in place. The program should run in O(1) space complexity and O(nodes) time complexity.
Example 1:
1 | Input: 1->2->3->4->5->NULL |
Example 2:
1 | Input: 2->1->3->5->6->4->7->NULL |