【leetcode_easy_string】1544. Make The String Great

problem

1544. Make The String Great

solution#1:Brute-Force;

code

 

注意1,如何判断两个字符是同一个字母的大小写呢?!

注意2,for循环的限制条件;

注意3,while循环的条件,或者外层循环结束的条件;

solution#2: two pointers.

code 

 

solution#3: string特性;

code

 

 

也可以使用队列;

参考

1. leetcode_easy_string_1544. Make The String Great;

posted on 2020-12-20 17:03  鹅要长大  阅读(89)  评论(0编辑  收藏  举报

导航