自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Dufre

Stay Hungry,Stay Foolish

  • 博客(5)
  • 问答 (2)
  • 收藏
  • 关注

原创 leetcode No224. Basic Calculator

Question:Implement a basic calculator to evaluate a simple expression string.The expression string may contain open ( and closing parentheses ), the plus + or minus sign -, non-negative integers and em

2017-01-30 13:12:01 408

原创 leetcode No152. Maximum Product Subarray

QuestionFind the contiguous subarray within an array (containing at least one number) which has the largest product.For example, given the array [2,3,-2,4], the contiguous subarray [2,3] has the large

2017-01-11 10:49:27 695

原创 leetcode No134. Gas Station

QuestionThere are N gas stations along a circular route, where the amount of gas at station i is gas[i].You have a car with an unlimited gas tank and it costs cost[i] of gas to travel from station i to

2017-01-10 19:48:58 604

原创 IP地址及子网掩码

IP地址的分类A类IP地址第一段为网段,其余的是网段内的主机B类IP地址前两段为网段,其余的是网段内的主机C类IP地址前三段为网段,其余的是网段内的主机同一网段内的首地址为网络本身不能被使用,同一网段内的末地址为当前网络的广播地址,比如A类IP地址,1.0.0.0为网络本身,1.255.255.255为广播地址子网掩码的计算计算机三级考试中有类似的题,以此为例 类别 二进制表示

2017-01-05 10:57:08 1801

原创 leetcode No149. Max Points on a Line

Question:Given n points on a 2D plane, find the maximum number of points that lie on the same straight line. 求二维坐标中,最多共线的点数Algorithm遍历每个点,找到斜率一样的点,用哈希表存储大小 注意: 相同的点单独计算 在同一竖线上斜率无穷大,可以记为INT_MAXAccep

2017-01-04 17:54:07 777 2

空空如也

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

TA关注的人

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