Why I need to subtract one to balance it correctly?

后端 未结 0 1982
轻奢々
轻奢々 2020-12-09 11:40

//Given a string containing only the characters x and y, find whether there are the same number of xs and ys.

import UIKit

func perfectlyBalanced (str:String         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题