Download Maximum 69 Number.py
class Solution: def maximum69Number (self, num: int) -> int: # Replace first 6 with 9 if exists return(str(num).replace('6', '9', 1))
Leetcode 1323 Maximum 69 Number problem solution in python3 with explanation. This is the best place to expand your knowledge and get prepared for your next interview.
Feedback is the most important part of any website.
If you have any query, suggestion or feedback, Please feel free to contact us.