LeetCode 1137. N-th Tribonacci Number
Description https://leetcode.com/problems/n-th-tribonacci-number/ The Tribonacci sequence Tn is defined as follows: T0 = 0, T1 = 1, T2 = 1, and Tn+3 = Tn + Tn+1 + Tn+2 for…
Be a Good Techer and Tech for Good. www.goodtecher.com
Description https://leetcode.com/problems/n-th-tribonacci-number/ The Tribonacci sequence Tn is defined as follows: T0 = 0, T1 = 1, T2 = 1, and Tn+3 = Tn + Tn+1 + Tn+2 for…
Description https://leetcode.com/problems/convert-integer-to-the-sum-of-two-no-zero-integers/ Given an integer n. No-Zero integer is a positive integer which doesn’t contain any 0 in its decimal representation. Return a list…
Description https://leetcode.com/problems/distribute-candies/ Alice has n candies, where the ith candy is of type candyType[i]. Alice noticed that she started to gain weight, so she visited…
Description https://leetcode.com/problems/add-digits/ Given an integer num, repeatedly add all its digits until the result has only one digit, and return it.…
Description https://leetcode.com/problems/calculate-money-in-leetcode-bank/ Hercy wants to save money for his first car. He puts money in the Leetcode bank every day. He starts…
Description https://leetcode.com/problems/find-n-unique-integers-sum-up-to-zero/ Given an integer n, return any array containing n unique integers such that they add up to 0. Example 1: Input: n = 5 Output:…
Description https://leetcode.com/problems/armstrong-number/ The k-digit number N is an Armstrong number if and only if the k-th power of each digit sums to…
Description https://leetcode.com/problems/convert-binary-number-in-a-linked-list-to-integer/ Given head which is a reference node to a singly-linked list. The value of each node in the linked list is…
Description https://leetcode.com/problems/count-of-matches-in-tournament/ You are given an integer n, the number of teams in a tournament that has strange rules: If the…
Description https://leetcode.com/problems/subtract-the-product-and-sum-of-digits-of-an-integer/ Given an integer number n, return the difference between the product of its digits and the sum of its…