64 最小路径和 给定一个包含非负整数的 m x n 网格,请找出一条从左上角到右下角的路径,使得路径上的数字总和为最小。 说明:每次只能向下或者向右移动一步。 示例: 来源:力扣(LeetCode) 链接:https://leetcode cn.com/problems/minimum path ...
分类:
其他好文 时间:
2020-01-29 14:27:44
阅读次数:
59
Given a string s consisting only of letters 'a' and 'b'. In a single step you can remove one palindromic subsequence from s. Return the minimum number ...
分类:
其他好文 时间:
2020-01-29 12:53:49
阅读次数:
94
标签(空格分隔): ACM D. MEX maximizing Description: Recall that MEX of an array is a minimum non negative integer that does not belong to the array. Examples ...
分类:
其他好文 时间:
2020-01-27 23:55:09
阅读次数:
116
There are a number of spherical balloons spread in two-dimensional space. For each balloon, provided input is the start and end coordinates of the hor ...
分类:
其他好文 时间:
2020-01-27 09:40:50
阅读次数:
81
转跳点:--\(˙<>˙)/-- 原本打算大年三十十一起写完的,结果这篇拖到了年初一…… 这道题比刚刚那道,麻烦一点,因为有重复,所以我们需要考虑重复的情况,就是刚刚的两种情况变成了三种: mid < right:left = mid+1 mid > right:right = left; mid ...
分类:
编程语言 时间:
2020-01-25 00:54:05
阅读次数:
120
You have some sticks with positive integer lengths. You can connect any two sticks of lengths X and Y into one stick by paying a cost of X + Y. You pe ...
分类:
其他好文 时间:
2020-01-24 09:32:12
阅读次数:
90
There is a one-dimensional garden on the x-axis. The garden starts at the point 0 and ends at the point n. (i.e The length of the garden is n). There ...
分类:
其他好文 时间:
2020-01-22 10:45:04
阅读次数:
78
// java时间获取类 public class DateUtil { // 获取当前时间 public static Date getNowTime() { Calendar calendar = Calendar.getInstance(); return calendar.getTime() ...
分类:
编程语言 时间:
2020-01-19 09:43:30
阅读次数:
112
A. Lorenzo Von Matterhorn B.Minimum spanning tree for each edge C.Misha, Grisha and Underground D.Fools and Roads E.City Driving 题意:给你一颗基环树(有n条边,n个点的连 ...
分类:
其他好文 时间:
2020-01-18 15:00:58
阅读次数:
97
题目如下: You have a keyboard layout as shown above in the XY plane, where each English uppercase letter is located at some coordinate, for example, the l ...
分类:
其他好文 时间:
2020-01-17 11:45:26
阅读次数:
67