- 博客(11)
- 收藏
- 关注
原创 LeetCode70:爬楼梯
https://leetcode.com/problems/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 y...
2019-11-27 09:07:38 67
原创 保存 gdb配置信息到 ~/.gdbinit 文件
如果有一些对gdb的默认配置,可以考虑保存到~/.gdbinit文件中vim ~/.gdbinit
2019-11-25 16:11:00 1276
原创 Shell 命令查看变量值是否为空
Using below code to check whether the var value is empty or not:if [ -z "$var" ]then echo "\$var is empty"else echo "\$var is NOT empty"fiOr direcly check whether the var is not em...
2019-11-21 11:43:23 679
原创 LeetCode69:开根号
https://leetcode.com/problems/sqrtx/问题描述Implement int sqrt(int x).Compute and return the square root of x, wherexis guaranteed to be a non-negative integer.Since the return typeis an intege...
2019-11-18 18:19:51 946
原创 LeetCode66:加一
https://leetcode.com/problems/plus-one/问题描述Given a non-empty array of digitsrepresenting a non-negative integer, plus one to the integer.The digits are stored such that the most significant dig...
2019-11-18 17:43:28 67
原创 LeetCode58:不同路径
https://leetcode.com/problems/unique-paths/问题描述A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).The robot can only move either down or right at any...
2019-11-15 10:48:53 66
转载 SQL中的Join机制
在关系型数据库中,JOIN本质上是基于涉及的两个或者多个表进行结合重构的过程点。其创造的结果可以被保存为一个表(table)或者是作为一个表来使用。这个结合的过程的基础,或者说联系点,是存在于两个表之间的共通的列。一般来说,ANSI标准的SQL定义了如下这些JOIN操作类型:INNER LEFT OUTER RIGHT OUTER FULL OUTER CROSS例表关系型数据库...
2019-11-14 08:40:33 653
原创 LeetCode56:合并区间
https://leetcode.com/problems/merge-intervals/问题描述Given a collection of intervals, merge all overlapping intervals.Example 1:Input: [[1,3],[2,6],[8,10],[15,18]]Output: [[1,6],[8,10],[15,18]]...
2019-11-07 16:49:29 79
原创 LeetCode55:跳跃游戏
https://leetcode.com/problems/jump-game/问题描述Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximu...
2019-11-06 13:19:27 92
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人