Find the odd int
문제
// @param { Array } n
function findOddInt (n) {
//happy coding!
}문제 이해
expect(findOddInt([20,1,-1,2,-2,3,3,5,5,1,2,4,20,4,-1,-2,5])).to.eql(5);
expect(findOddInt([9])).to.eql(9);
expect(findOddInt([1, 1, 1, 1, 1, 1, 3, 3, 3])).to.eql(3);
expect(findOddInt([5, 6, 4, 6, 5, 7, 1, 5, 7, 6, 5, 7, 6, 4, 1])).to.eql(7);해결 방법
코드 구현
결과 분석
Last updated