这个题有两个版本 Merge Music Files 组装零件 类似: https://leetcode.com/problems/minimum-cost-to-merge-stones/description/ 1. 有一串正整数,非排序的。先挑两个数字加起来,把这个和记下来,比如说s1。再在剩 ...
分类:
其他好文 时间:
2019-06-15 09:35:04
阅读次数:
97
题目描述 Given an array of n positive integers and a positive integer s, find the minimal length of a contiguous subarray of which the sum ≥ s. If there i ...
分类:
其他好文 时间:
2019-06-13 15:35:07
阅读次数:
85
Given a binary tree, find its minimum depth. The minimum depth is the number of nodes along the shortest path from the root node down to the nearest l ...
分类:
其他好文 时间:
2019-06-09 18:26:42
阅读次数:
100
/** * Definition for binary tree * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode(int x) { val = x; } * } */ import ... ...
分类:
其他好文 时间:
2019-06-08 15:11:15
阅读次数:
99
正则表达式的练习网站:https://alf.nu/RegexGolf 共17道题:只能说从第10题开始就很变态了,就是看看答案好了 ...
分类:
其他好文 时间:
2019-06-08 13:13:29
阅读次数:
158
Spring 系列教程 "Spring 框架介绍" "Spring 框架模块" "Spring开发环境搭建(Eclipse)" "创建一个简单的Spring应用" "Spring 控制反转容器(Inversion of Control – IOC)" "理解依赖注入(DI – Dependency ...
分类:
编程语言 时间:
2019-06-07 12:56:26
阅读次数:
94
Spring 系列教程 "Spring 框架介绍" "Spring 框架模块" "Spring开发环境搭建(Eclipse)" "创建一个简单的Spring应用" "Spring 控制反转容器(Inversion of Control – IOC)" "理解依赖注入(DI – Dependency ...
分类:
编程语言 时间:
2019-06-07 12:51:48
阅读次数:
97
Spring 系列教程 "Spring 框架介绍" "Spring 框架模块" "Spring开发环境搭建(Eclipse)" "创建一个简单的Spring应用" "Spring 控制反转容器(Inversion of Control – IOC)" "理解依赖注入(DI – Dependency ...
分类:
编程语言 时间:
2019-06-07 12:44:37
阅读次数:
111
题目链接 http://codeforces.com/problemset/problem/1009/B 题意 给一个只含0、1、2串,只能做相邻的01交换或者相邻的12交换操作,问经过数次操作(可以是0次)能得到的最小字典序的串是什么。 题解 思维题 关键是把题意理解为:固定0、2的相对位置,往里 ...
分类:
其他好文 时间:
2019-06-07 00:26:17
阅读次数:
84