새소식

인기 검색어

프로그래머스/Lv.0

[Swift] A로 B 만들기

  • -
import Foundation

func solution(_ before:String, _ after:String) -> Int {
    before.sorted() == after.sorted() ? 1 : 0
}

 

Contents

포스팅 주소를 복사했습니다

이 글이 도움이 되었다면 공감 부탁드립니다.