摘要:
/** * Definition for a binary tree node. * public class TreeNode { * public int val; * public TreeNode left; * public TreeNode right; * public TreeNod 阅读全文
摘要:
https://leetcode.com/problems/perfect-number/#/description 阅读全文
摘要:
public class Solution { Stack<char> S = new Stack<char>(); public bool IsValid(string s) { foreach (var c in s) { if (c == '(' || c == '[' || c == '{' 阅读全文
摘要:
https://leetcode.com/problems/isomorphic-strings/#/description 阅读全文
摘要:
https://leetcode.com/problems/find-all-anagrams-in-a-string/#/description 上面的是别人在讨论区的实现。 下面是我自己的实现,使用非递归方法,性能更好: 阅读全文
摘要:
https://leetcode.com/problems/binary-tree-tilt/#/description 阅读全文
摘要:
https://leetcode.com/problems/array-partition-i/#/description 阅读全文