Content text DSA Black Book
Campusmonk DSA Black Book-The Monk Way – Where DSA Meets Success Output: false Explanation: When read from left to right : 123. When read from right to left : 321. 5. ) Return the Largest Digit in a Number You are given an integer n. Return the largest digit present in the number. Examples: Input: n = 25 Output: 5 Explanation: The largest digit in 25 is 5. Input: n = 99 Output: 9 Explanation: The largest digit in 99 is 9. 6. ) Divisors of a Number Link You are given an integer n. You need to find all the divisors of n. Return all the divisors of n as an array or list in a sorted order. A number which completely divides another number is called it's divisor. Examples: Input: n = 6 Output = [1, 2, 3, 6] Explanation: The divisors of 6 are 1, 2, 3, 6.