自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

丫丫狸笫的专栏

Everyday,thinking....

  • 博客(9)
  • 资源 (2)
  • 问答 (1)
  • 收藏
  • 关注

原创 Leetcode 312: Burst Balloons

Leetcode 312: Burst Balloons Given n balloons, indexed from 0 to n-1. Each balloon is painted with a number on it represented by array nums. You are asked to burst all the balloons. If the you burst

2017-08-20 10:01:26 542

原创 积累

不得不说,概念还是挺重要的。To understand something其他概念外围设备 计算机系统除主机外的其他设备。包括输入和输出设备、外存储器、模数转换器、外围处理机等。是计算机与外界进行通信的工具。例如打印机、磁盘驱动器或键盘。对称矩阵的上三角阵:左下角为0编译原理简单优先文法 定义: 一个文法G,如果它不含空串产生式,也不含任何右部相同的不同产生式,并且它的任何符号对(

2017-08-18 18:10:10 348

原创 byte 与 int 转换

复习过程中,遇到的不太理解的地方(byte)b & 0xffbyte to int比较下面两个 public static int byte2Int(byte b){ return (int)b; } public static int byte2Int(byte b){ return (int)(b & 0xff); }疑问你肯定在想这个

2017-08-17 22:19:40 31621 1

转载 Leetcode 44:Wildcard Matching

Leetcode 44:Wildcard MatchingImplement wildcard pattern matching with support for ‘?’ and ‘*’. ‘?’ Matches any single character. ‘*’ Matches any sequence of characters (including the empty sequenc

2017-08-17 21:22:04 283

转载 Leetcode 10: Regular Expression Matching

Leetcode 10: Regular Expression MatchingImplement regular expression matching with support for ‘.’ and ‘*’. ‘.’ Matches any single character. ‘*’ Matches zero or more of the preceding element.

2017-08-16 23:25:34 305

转载 Leetcode 300 :Longest Increasing Sequence

Leetcode 300Given an unsorted array of integers, find the length of longest increasing subsequence.For example, Given [10, 9, 2, 5, 3, 7, 101, 18], The longest increasing subsequence is [2, 3, 7

2017-08-16 22:31:09 385

转载 Leetcode 560: Subarray Sum Equal k

Leetcode 560 Given an array of integers and an integer k, you need to find the total number of continuous subarrays whose sum equals to k.Example 1: Input:nums = [1,1,1], k = 2 Output: 2Note:

2017-08-16 21:59:26 290

原创 小易喜欢的数列

小易喜欢的数列小易非常喜欢拥有以下性质的数列: 1、数列的长度为n 2、数列中的每个数都在1到k之间(包括1和k) 3、对于位置相邻的两个数A和B(A在B前),都满足(A <= B)或(A mod B != 0)(满足其一即可) 例如,当n = 4, k = 7 那么{1,7,7,2},它的长度是4,所有数字也在1到7范围内,并且满足第三条性质,所以小易是喜欢这个数列的 但是小易不喜欢{

2017-08-15 13:54:29 1518

原创 堆棋子与曼哈顿距离

堆棋子牛客网通道: https://www.nowcoder.com/questionTerminal/27f3672f17f94a289f3de86b69f8a25b小易将n个棋子摆放在一张无限大的棋盘上。第i个棋子放在第x[i]行y[i]列。同一个格子允许放置多个棋子。每一次操作小易可以把一个棋子拿起并将其移动到原格子的上、下、左、右的任意一个格子中。小易想知道要让棋盘上出现有一个格子中至少有

2017-08-15 13:34:02 728

田忌赛马C语言实现

分别输入田忌和齐王的马的速度。先排好序,再分情况讨论,代码易懂,仔细看看。不懂就调试一下。

2013-04-14

01背包问题

关于01背包问题,自己看看吧,应该比较好理解吧,不过没有注释

2013-04-01

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除