[LeetCode]Numbers With Repeated Digits

题目描述:

LeetCode 1015. Numbers With Repeated Digits

Given a positive integer N, return the number of positive integers less than or equal to N that have at least 1 repeated digit.

Example 1:

Input: 20
Output: 1
Explanation: The only ...

继续阅读

[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 ...

继续阅读

年度归档