- 博客(8)
- 收藏
- 关注
原创 Next bigger number with the same digits (4kyu)
Create a function that takes a positive integer and returns the next bigger number that can be formed by rearranging its digits. For example:If the digits can’t be rearranged to form a bigger number, return (or in Swift, in Rust):SolutionThe function
2023-07-15 20:19:14 126 1
原创 Next smaller number with the same digits (4kyu)
Write a function that takes a positive integer and returns the next smaller positive integer containing the same digits.For example:Return -1 (for : return , for : return ), when there is no smaller number that contains the same digits. Also return -1 whe
2023-07-14 19:45:24 166 1
原创 Integers: Recreation One (5kyu)
are the divisors of number . Squaring these divisors we get: . The sum of these squares is which is .Find all integers between and (m and n integers with 1 <= m <= n) such that the sum of their squared divisors is itself a square.We will return an array
2023-07-13 21:09:20 78 1
原创 Perimeter of squares in a rectangle (5kyu)
【代码】Perimeter of squares in a rectangle (5kyu)
2023-07-12 16:19:07 99 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人