Given a list of Connections, which is the Connection class (the city name at both ends of the edge and a cost between them), find edges that can conne ...
分类:
其他好文 时间:
2019-05-29 15:02:31
阅读次数:
127
全排列枚举 这题不能用贪心的。。反例很多。。 有一个最暴力的方法就是枚举所有全排列,在n次交换内能复原就更新答案。 为了方便复原,我们枚举的全排列是原数的每个位数的位置的全排列。 include define INF 0x3f3f3f3f define full(a, b) memset(a, b, ...
分类:
其他好文 时间:
2019-05-28 17:09:37
阅读次数:
93
public class Singleton1 { private static Singleton1 singleton = null; private Singleton1(){} public static Singleton1 getSingleton(){ if(singleton==nu ...
分类:
其他好文 时间:
2019-05-27 16:23:58
阅读次数:
75
120. Triangle 0. 参考文献 | 序号 | 文献 | | | | | 1 | "Leetcode 120 Triangle" | | 2 | "[eetCode 120 Triangle" ] | 1.题目 Given a triangle, find the minimum path ...
分类:
其他好文 时间:
2019-05-26 19:39:46
阅读次数:
122
64. Minimum Path Sum Given a m x n grid filled with non negative numbers, find a path from top left to bottom right which minimizes the sum of all num ...
分类:
其他好文 时间:
2019-05-26 16:14:38
阅读次数:
90
ioc:Inversion of Control di:Dependency Injection 这些概念已经在oo里被过度解读了,有必要正本清源,其实没有什么第三方负责,只有一个容器,这是最关键的概念 容器就是运行时环境,没有那么多乌七八糟的解读,开发过界面的人知道什么是容器,html标签就是一个 ...
分类:
其他好文 时间:
2019-05-25 10:06:48
阅读次数:
121
题目链接 : https://leetcode cn.com/problems/minimum path sum/ 题目描述: 给定一个包含非负整数的 m x n 网格,请找出一条从左上角到右下角的路径,使得路径上的数字总和为最小。 说明: 每次只能向下或者向右移动一步。 示例: 思路: 与 "62 ...
分类:
其他好文 时间:
2019-05-24 18:59:48
阅读次数:
112
Given two words word1 and word2, find the minimum number of operations required to convert word1 to word2. You have the following 3 operations permitt ...
分类:
编程语言 时间:
2019-05-23 18:21:34
阅读次数:
95
lay the roots for 为…打下基础 lead to 导致 lead into 使…陷入,领…进入 lead…to… 将…引向… leakage 泄露(动词leak) leap 飞跃,跳跃 accomplishment 成绩,成就 account for 说明(原因等) accounti ...
分类:
其他好文 时间:
2019-05-22 14:06:37
阅读次数:
176
设备宽度和浏览器视口一致时 如果页面宽大于这个数字,就会出现滚动条。 当移动设备和浏览器视口一致时,如果还使用以前的布局,如果页面超过设备宽,超过的部分会被截掉。不能使用传统的页面开发模式了。 ...
分类:
移动开发 时间:
2019-05-22 09:15:57
阅读次数:
147