# LeetCode 1323. Maximum 69 Number

 12345678910111213141516171819202122232425262728293031323334 static auto x = []() {     ios::sync_with_stdio(false);     cin.tie(nullptr);     return 0; }(); class Solution { public:     int maximum69Number (int num) {         stack s;         int now=num;         while(now!=0){             s.push(now%10);             now/=10;         }                 bool changed=false;         int ret=0;         while(!s.empty()){             if(changed){                 ret=ret*10+s.top();                 s.pop();             }             else{                 if(s.top()==6){                     changed=true;                 }                 ret=ret*10+9;                 s.pop();             }         }         return ret;     } };

## 17 Replies to “LeetCode 1323. Maximum 69 Number”

1. bookmarked!!, I love your web site!

2. May I simply just say what a comfort to discover somebody who truly knows what they are talking about online.
You definitely understand how to bring a problem to light and make it important.
More people have to read this and understand this side of
your story. It’s surprising you aren’t more popular given that you definitely have the gift.

3. fantastic submit, very informative. I ponder why the other
specialists of this sector do not understand this. You should
continue your writing. I’m confident, you’ve a huge readers’
base already!

4. Thanks for sharing your thoughts. I truly appreciate your efforts and I will be waiting for your further post thanks
once again.

5. I delight in, lead to I discovered exactly what I used to
be taking a look for. You’ve ended my four day long hunt!
God Bless you man. Have a nice day. Bye

6. This design is wicked! You obviously know how to keep a reader amused.
Between your wit and your videos, I was almost moved to start
my own blog (well, almost…HaHa!) Wonderful job. I really loved what you had to
say, and more than that, how you presented it. Too cool!

7. Hi my loved one! I want to say that this article is amazing,
great written and come with almost all important infos.

I’d like to peer extra posts like this .

8. If some one desires expert view about blogging and
site-building after that i recommend him/her to go to see this blog, Keep up the
fastidious work.

9. Hey there this is somewhat of off topic but I was wondering if blogs
use WYSIWYG editors or if you have to manually code with HTML.
I’m starting a blog soon but have no coding experience so I wanted
to get guidance from someone with experience. Any help would be greatly appreciated!

10. Genuinely no matter if someone doesn’t be aware of afterward its up to other
visitors that they will help, so here it takes place.

11. I’m gone to say to my little brother, that he should also pay a visit this blog on regular basis to take updated from
most up-to-date gossip.

12. Hello, i read your blog occasionally and i own a similar one and i was just wondering if you get a
lot of spam comments? If so how do you stop it, any plugin or anything you can suggest?
I get so much lately it’s driving me insane so any support is very much appreciated.

13. Heya this is somewhat of off topic but I was wondering
if blogs use WYSIWYG editors or if you have to manually code with HTML.
I’m starting a blog soon but have no coding
knowledge so I wanted to get guidance from someone with experience.
Any help would be greatly appreciated!

14. Good site you’ve got here.. It’s difficult to find excellent
writing like yours nowadays. I truly appreciate individuals like you!
Take care!!

15. Hey there! Someone in my Myspace group shared this site with us so I came to take a look.
I’m definitely enjoying the information. I’m bookmarking
and will be tweeting this to my followers! Excellent blog and fantastic style and design.