Day_10
Intro
Q16. Are Similar?
Two arrays are called similar if one can be obtained from another by swapping at most one pair of elements in one of the arrays.
Given two arrays a and b, check whether they are similar.
제출 코드
1 | def areSimilar(a, b): |
작성 흐름 (제출 코드에도 같은 주석)
1 | # 테스트 케이스 |