- 博客(5)
- 资源 (1)
- 问答 (5)
- 收藏
- 关注
原创 Implement strStr()
题目描述:https://leetcode-cn.com/problems/implement-strstr/思路:字符串匹配,在源字串中找到和目标字串开头字母相等的位置,再依次向后比较,如果剩余的字母也相同,则返回该位置。就否则继续向后重复该操作,直到源字串完。#include<cstdio>#include<iostream> #include<...
2019-01-24 18:11:28 190
原创 Letter Case Permutation
题目描述:https://leetcode-cn.com/problems/letter-case-permutation/思路:将字符串的转化看作一个二叉树的遍历(如下图),但要注意一点,在数字节点上,不能进行分支,否则会产生重复的情况。 #include<...
2019-01-14 21:16:23 211
原创 Reverse Integer
题目描述:https://leetcode-cn.com/problems/reverse-integer/思路:从原数中分离出各个位的数值,并且倒置即可。#include<cstdio>#include<iostream>#include<math.h>#include<stdlib.h>using namespace std...
2019-01-14 16:48:04 93
原创 Binary Watch
题目描述:https://leetcode-cn.com/problems/binary-watch/题目过长,就不多描述了,直接点链接即可。思路:列举m个小时灯亮,n个分钟灯亮的情况下的各种小时和分钟的值,并且排列组合即可。(m+n==num)#include<cstdio>#include<iostream>#include<vector&g...
2019-01-13 22:09:06 190
原创 Two Sum
题目描述:Given an array of integers, return indices of the two numbers such that they add up to a specific target.You may assume that each input would have exactly one solution, and you may not use the...
2019-01-13 16:17:21 123
空空如也
unity 3D 游戏里小地图制作的问题
2017-05-24
线程同步 卖票问题 三个车站卖七张票
2016-05-23
线程同步 卖票问题 三个车站卖七张票
2016-05-19
蓝桥杯振兴中华c++代码
2016-04-19
蓝桥杯 未名湖的烦恼 fun(m-1,n)+fun(m,n-1)这句代码详细解释
2016-02-01
TA创建的收藏夹 TA关注的收藏夹
TA关注的人