Skip to content

Commit a4a7bb2

Browse files
committed
add language type for README code
1 parent 3425912 commit a4a7bb2

File tree

11 files changed

+11
-11
lines changed

11 files changed

+11
-11
lines changed

algorithms/BinaryTreeInorderTraversal/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Binary Tree Inorder Traversal
22
Use recursion can easy to solve this problem, like below:
3-
```
3+
```python
44
# Definition for a binary tree node.
55
# class TreeNode(object):
66
# def __init__(self, x):

algorithms/BinaryTreePostorderTraversal/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Binary Tree Postorder Traversal
22
Use recursion can easy to solve this problem, like below:
3-
```
3+
```python
44
# Definition for a binary tree node.
55
# class TreeNode(object):
66
# def __init__(self, x):

algorithms/BinaryTreePreorderTraversal/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Binary Tree Preorder Traversal
22
Use recursion can easy to solve this problem, like below:
3-
```
3+
```python
44
# Definition for a binary tree node.
55
# class TreeNode(object):
66
# def __init__(self, x):

algorithms/ClimbingStairs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Climbing Stairs
22
This problem is easy to solve by recursive like below:
3-
```
3+
```python
44
class Solution(object):
55
def climbStairs(self, n):
66
"""

algorithms/ConvertBstToGreaterTree/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Convert Bst To Greater Tree
22
We can simply inorder traversal the tree and reverse the result then get sum, just like below:
3-
```
3+
```python
44
# Definition for a binary tree node.
55
# class TreeNode(object):
66
# def __init__(self, x):

algorithms/LetterCasePermutation/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Letter Case Permutation
22
This problem is easy to solve by set, or use Backtracking Algorithm to solve it, just like below:
3-
```
3+
```python
44
class Solution(object):
55
def letterCasePermutation(self, S):
66
"""

algorithms/MaximumDepthOfBinaryTree/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Maximum Depth Of Binary Tree
22
We can use recursion to solve this problem, like this:
3-
```
3+
```python
44
# Definition for a binary tree node.
55
# class TreeNode(object):
66
# def __init__(self, x):

algorithms/MinCostClimbingStairs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Min Cost Climbing Stairs
22
This problem is easy to solve by dynamic programming, the recursion solution is like below:
3-
```
3+
```python
44
class Solution(object):
55
def minCostClimbingStairs(self, cost):
66
"""

algorithms/PowerOfFour/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Power Of Four
22
Use recursion can easy to solve this problem, like below:
3-
```
3+
```python
44
class Solution(object):
55
def isPowerOfFour(self, num):
66
"""

algorithms/ReverseLinkedList/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Reverse Linked List
22
This problem is easy to solve, the loop solution is like below:
3-
```
3+
```python
44
# Definition for singly-linked list.
55
# class ListNode(object):
66
# def __init__(self, x):

algorithms/SymmetricTree/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Symmetric Tree
22
This problem is easy to solve, the recursive solution is like below:
3-
```
3+
```python
44
# Definition for a binary tree node.
55
# class TreeNode(object):
66
# def __init__(self, x):

0 commit comments

Comments
 (0)