疯狂的指针
疯狂的指针
全部文章
leetcode
C/C++(10)
c语言(1)
git(1)
Git教程(2)
IO模型(1)
LeetCode题解(3)
Linux(7)
PLC(3)
Python(7)
socket(1)
中国(2)
其他(1)
冒泡排序(1)
动态规划(6)
回溯法(1)
回溯法基础(3)
快速排序(1)
接口(2)
数据结构(5)
未归档(187)
树状数组(1)
浙大PAT-A题目集(30)
浙大PAT-B题目集(23)
深入学习C++(14)
生物(1)
程序员升职记(10)
笔试(2)
经济学人(6)
英语学习(1)
读书笔记(3)
谷歌(1)
归档
标签
去牛客网
登录
/
注册
Vincent's Blog
全部文章
/ leetcode
(共18篇)
【LeetCode】226. Invert Binary Tree
Invert a binary tree. 4 / \ 2 7 / \ / \ 1 3 6 9 to 4 / \ 7 2 / \ / \ 9 6 3 1 思路: 递归解决,倒置左子树,倒置右子树,交...
leetcode
2017-05-03
0
539
【Leetcode】167. Two Sum II - Input array is sorted
Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target number. The functio...
leetcode
2017-05-03
0
508
【LeetCode】415. Add Strings,用string模拟加法
题目链接:https://leetcode.com/problems/add-strings/#/description 这个题的目的就是用string模拟整数加法 class Solution { public: string addStrings(string num1, strin...
leetcode
string
2017-04-22
0
634
LeetCode 22. Generate Parentheses
Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. For example, given n = 3, a solution set is: ...
leetcode
2017-02-24
0
508
LeetCode 461. Hamming Distance
The Hamming distance between two integers is the number of positions at which the corresponding bits are different. Given two integers x and y, calcu...
leetcode
2017-02-22
0
513
LeetCode 476. Number Complement
Given a positive integer, output its complement number. The complement strategy is to flip the bits of its binary representation. Note: The given in...
leetcode
2017-02-22
0
487
LeetCode 520. Detect Capital
Given a word, you need to judge whether the usage of capitals in it is right or not. We define the usage of capitals in a word to be right when one o...
leetcode
2017-02-21
0
464
LeetCode 20. Valid Parentheses
Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. The brackets must close in the...
leetcode
2017-02-21
0
515
LeetCode 70. Climbing Stairs
You are climbing a stair case. It takes n steps to reach to the top. Each time you can either climb 1 or 2 steps. In how many distinct ways can you c...
2017-02-20
0
545
LeetCode 66. Plus One
Given a non-negative integer represented as a non-empty array of digits, plus one to the integer. You may assume the integer do not contain any leadi...
leetcode
2017-02-20
0
504
首页
上一页
1
2
下一页
末页