2018年5月19日

LeetCode第[69]题(Java):Sqrt(x)

摘要: 题目:求平方根 难度:Easy 题目内容: Compute and return the square root of x, where x is guaranteed to be a non-negative integer. Since the return type is an integer 阅读全文

posted @ 2018-05-19 23:42 清风吹斜阳 阅读(376) 评论(0) 推荐(0) 编辑

2018年5月18日

LeetCode第[66]题(Java):Plus One

摘要: 题目:数组加一 难度:Easy 题目内容: Given a non-empty array of digits representing a non-negative integer, plus one to the integer. The digits are stored such that 阅读全文

posted @ 2018-05-18 11:46 清风吹斜阳 阅读(788) 评论(0) 推荐(0) 编辑

2018年5月14日

LeetCode第[62]题(Java):Unique Paths 及扩展

摘要: 题目:唯一路径(机器人走方格) 难度:Medium 题目内容: 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 mo 阅读全文

posted @ 2018-05-14 23:50 清风吹斜阳 阅读(292) 评论(0) 推荐(0) 编辑

localhost不能访问127.0.0.1可以访问的原因以及解决办法

摘要: 今天在调试程序的时候,出现了一个奇怪问题,localhost不能访问但127.0.0.1可以访问? localhost与127.0.0.1的概念和工作原理之不同 要比较两个东西有什么不同,首先要弄清两者的概念。所以,我们从概念开始。 localhost:也叫local ,正确的解释是:本地服务器 1 阅读全文

posted @ 2018-05-14 21:01 清风吹斜阳 阅读(2115) 评论(0) 推荐(0) 编辑

LeetCode第[56]题(Java):Merge Intervals

摘要: 题目:合并区间 难度:Medium 题目内容: Given a collection of intervals, merge all overlapping intervals. Given a collection of intervals, merge all overlapping inter 阅读全文

posted @ 2018-05-14 00:14 清风吹斜阳 阅读(261) 评论(0) 推荐(0) 编辑

2018年5月13日

LeetCode第[55]题(Java):Jump Game

摘要: 题目:跳跳游戏 难度:Medium 题目内容: Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the arr 阅读全文

posted @ 2018-05-13 19:09 清风吹斜阳 阅读(378) 评论(0) 推荐(0) 编辑

LeetCode第[54]题(Java):Spiral Matrix

摘要: 题目:螺旋矩阵 难度:Medium 题目内容: Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order. 翻译: 给定一个m x n元素的矩阵(m行 阅读全文

posted @ 2018-05-13 17:23 清风吹斜阳 阅读(431) 评论(0) 推荐(0) 编辑

LeetCode第[53]题(Java):Maximum Subarray

摘要: 题目:和最大的子序列 难度:Medium 题目内容: Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and re 阅读全文

posted @ 2018-05-13 00:01 清风吹斜阳 阅读(928) 评论(0) 推荐(0) 编辑

2018年5月12日

LeetCode第[50]题(Java):Pow(x, n)

摘要: 题目:求x的n次幂 难度:Medium 题目内容: Implement pow(x, n), which calculates x raised to the power n (xn). 翻译: 实现计算x的n次幂。 Example 1: Example 2: Example 3: Note: -1 阅读全文

posted @ 2018-05-12 12:29 清风吹斜阳 阅读(1016) 评论(0) 推荐(0) 编辑

2018年5月11日

LeetCode第[49]题(Java):Group Anagrams

摘要: 题目:同字符分组 难度:Medium 题目内容: Given an array of strings, group anagrams together. 翻译:给定一组字符串数组,按相同字符组成的字符串分为一组。 Example: 我的思路:因为要分组,那么使用map即可,相同的字符作为键,值为一个 阅读全文

posted @ 2018-05-11 22:19 清风吹斜阳 阅读(346) 评论(0) 推荐(0) 编辑

导航