摘要:
We distribute some number of candies, to a row of n = num_people people in the following way: We then give 1 candy to the first person, 2 candies to t 阅读全文
posted @ 2020-07-25 07:15
CNoodle
阅读(274)
评论(0)
推荐(0)
摘要:
Given the edges of a directed graph, and two nodes source and destination of this graph, determine whether or not all paths starting from source event 阅读全文
posted @ 2020-07-25 04:26
CNoodle
阅读(758)
评论(0)
推荐(0)
摘要:
Given a directed acyclic graph (DAG) of n nodes labeled from 0 to n - 1, find all possible paths from node 0 to node n - 1, and return them in any ord 阅读全文
posted @ 2020-07-25 01:15
CNoodle
阅读(301)
评论(0)
推荐(0)