标签归档:leetcode

RSS feed of leetcode

[LeetCode]Largest Component Size by Common Factor

题目描述:

LeetCode 952. Largest Component Size by Common Factor

Given a non-empty array of unique positive integers A, consider the following graph:

  • There are A.length nodes, labelled A[0] to A[A.length - 1];
  • There is an edge between A ...

继续阅读

[LeetCode]Minimum Number of Refueling Stops

题目描述:

LeetCode 871. Minimum Number of Refueling Stops

A car travels from a starting position to a destination which is target miles east of the starting position.

Along the way, there are gas stations.  Each station[i] represents a ...

继续阅读