- 博客(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
空空如也
hexo 搭建博客-hexo new出错
2017-03-16
stable_partition怎么实现的
2016-10-08
TA创建的收藏夹 TA关注的收藏夹
TA关注的人