自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 收藏
  • 关注

原创 算法博客8 - 规则矩阵中找值

算法8 - 规则矩阵中找值 题目描述: Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties: Integers in each row are sorted in ascending from left to rig...

2019-01-01 17:29:57 213

原创 算法博客7 - Course Schedule 拓扑排序

算法博客7 - Course Schedule 拓扑排序 题目描述: There are a total of n courses you have to take, labeled from 0 to n - 1. Some courses may have prerequisites, for example to take course 0 you have to first take ...

2019-01-01 17:06:57 187

原创 算法博客6 - 图的克隆

算法博客6 - 图的克隆 题目描述: Clone an undirected graph. Each node in the graph contains a label and a list of its neighbors. OJ’s undirected graph serialization: Nodes are labeled uniquely. We use # as a sep...

2018-12-31 17:45:39 190

原创 算法博客5 - 字符串转化为整数相加

算法博客5 - 字符串转化为整数相加 题目描述: Given a string of numbers and operators, return all possible results from computing all the different possible ways to group numbers and operators. The valid operators are +,...

2018-12-31 03:17:03 267

原创 算法博客4 - 最小和

算法博客1 - 找出数组中第K大的元素 题目描述: 从数列A[0], A[1], A[2], …, A[N-1]中选若干个数,要求对于每个i(0<=i <=N-2),A[i]和A[i+1]至少选一个数,求能选出的最小和. 其中 1 <= N <= 100000, 1 <= A[i] <= 1000 例1:A = {2, 5, 2},答案为4. 例2:A =...

2018-12-31 03:12:46 217

原创 算法博客3 - 回文串问题

算法博客3 - 回文串问题 题目描述: Given a string, your task is to count how many palindromic substrings in this string. The substrings with different start indexes or end indexes are counted as different substrin...

2018-12-31 02:01:22 115

原创 算法博客2 - 找出数组中元素数目超过一半的元素

算法博客2 - 找出数组中元素数目超过一半的元素 题目描述: Given an array of size n, find the majority element. The majority element is the element that appears more than n/2 times.You may assume that the array is non-empty and...

2018-12-31 01:37:31 258

原创 算法博客1 - 找出数组中第N大的元素

算法博客1 - 找出数组中第K大的元素 题目描述: Find the k-th largest element in an unsorted array. Note that it is the kth largest element in the sorted order, not the k-th distinct element. For example, Given [3,2,1,5,...

2018-12-31 00:27:02 602

空空如也

空空如也

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

TA关注的人

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