Imagine you are attending your math lesson at school. Once again, you are bored because your teacher tells things that you already mastered years ago ...
分类:
其他好文 时间:
2018-09-19 19:57:39
阅读次数:
159
题面 bobo有一棵树,其顶点方便地用1,2...n标记。 树上有m条路径。 BOBO想挑一些路径,同时任何两个路径不共享共同的顶点。 找到bobo可以选择的最大路径数。 输入包括几个测试。 对于每个测试: 第一行包含n,m(1≤n,m≤105)。 以下(n-1)行中的每一行包含2个整数a i,b ...
分类:
其他好文 时间:
2018-09-17 23:03:33
阅读次数:
184
Mac一般使用bash作为默认shell Mac系统的环境变量,加载顺序为: /etc/profile /etc/paths ~/.bash_profile ~/.bash_login ~/.profile ~/.bashrc 当然/etc/profile和/etc/paths是系统级别的,系统启动 ...
分类:
系统相关 时间:
2018-09-16 15:45:15
阅读次数:
187
Flask 0.8 introduces instance folders. Flask for a long time made it possible to refer to paths relative to the application’s folder directly (via Fla ...
分类:
其他好文 时间:
2018-09-15 16:31:40
阅读次数:
581
1 class Solution { 2 public int uniquePathsWithObstacles(int[][] obstacleGrid) { 3 if(obstacleGrid == null) return 0; 4 int row = obstacleGrid.length;... ...
分类:
其他好文 时间:
2018-09-14 10:53:06
阅读次数:
142
A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). The robot can only move either down or right at any p ...
分类:
其他好文 时间:
2018-09-13 00:04:00
阅读次数:
220
最短路树就是用bfs走一遍就可以了 d[v] = d[u] + 1 表示v是u的前驱边 然后遍历每个结点 存下它的前驱边 再用dfs遍历每个结点 依次取每个结点的某个前驱边即可 ...
分类:
其他好文 时间:
2018-09-12 22:54:15
阅读次数:
301
题目大意 https://leetcode.com/problems/unique-paths/description/ 62. Unique Paths A robot is located at the top-left corner of a m x n grid (marked 'Start ...
分类:
其他好文 时间:
2018-09-12 16:56:04
阅读次数:
157
相关学习网址:importjava.io.IOException;importjava.nio.MappedByteBuffer;importjava.nio.channels.FileChannel;importjava.nio.channels.FileChannel.MapMode;importjava.nio.file.Paths;importjava.nio.file.StandardO
分类:
移动开发 时间:
2018-09-11 12:22:50
阅读次数:
306
点击Path栏中的小三角,选择Paths Menu,然后点击Export Path Import Path自然不必多说: ...
分类:
其他好文 时间:
2018-09-08 23:29:12
阅读次数:
202