题目如下: Given N, consider a convex N-sided polygon with vertices labelled A[0], A[i], ..., A[N-1] in clockwise order. Suppose you triangulate the polygo ...
分类:
其他好文 时间:
2019-05-31 16:56:20
阅读次数:
137
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
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
题目链接 : 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
GNU开发工具——CMake进阶一、CMake基础指令1、cmake_minimum_requiredcmake_minimum_required(VERSION2.8)cmake_minimum_required用于规定cmake程序的最低版本,可选。如果CMakeLists.txt文件中使用了高版本cmake特有的一些命令时,就需要使用cmake_minimum_required对CMake进
分类:
其他好文 时间:
2019-05-19 14:07:05
阅读次数:
125