- 博客(4)
- 收藏
- 关注
原创 Pascal's Travels
An n x n game board is populated with integers, one nonnegative integer per square. The goal is to travel along any legitimate path from the upper left corner to the lower right corner of the board. T...
2018-06-23 10:49:38
161
原创 Micro-World (浅度学习unique函数的用法,菜,就别看了吧233~)
You have a Petri dish with bacteria and you are preparing to dive into the harsh micro-world. But, unfortunately, you don't have any microscope nearby, so you can't watch them.You know that you have n...
2018-06-23 08:37:47
253
原创 关于topsort
拓扑排序定义:对一个有向无环图(Directed Acyclic Graph简称DAG) G进行拓扑排序,是将G中所有顶点排成一个线性序列,使得图中任意一对顶点u和v,若边(u,v)∈E(G),则u在线性序列中出现在v之前。通常,这样的线性序列称为满足拓扑次序(Topological Order)的序列,简称拓扑序列。简单的说,由某个集合上的一个偏序得到该集合上的一个全序,这个操作称之为拓扑排序...
2018-06-01 20:26:55
345
原创 Smallest Difference
Given a number of distinct decimal digits, you can form one integer by choosing a non-empty subset of these digits and writing them in some order. The remaining digits can be written down in some orde...
2018-05-07 21:19:07
172
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人