LeetCode 1323 Maximum 69 Number

LeetCode 1323 Maximum 69 Number Problem

Download Code
class Solution:
    def maximum69Number (self, num: int) -> int:
        # Replace first 6 with 9 if exists
        return(str(num).replace('6', '9', 1))
Download Maximum 69 Number.py

List of all Maximum 69 Number problems

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.