-
[프로그래머스] 공배수알고리즘 노트 2023. 10. 11. 09:32
number를 n과 m으로 모두 나누어 나머지가 0이면 공배수, 아니면 0을 리턴하면 된다.
여기서도 최대한 메모리 누수가 없게 삼항연산자로 처리..
'알고리즘 노트' 카테고리의 다른 글
[프로그래머스] 조건 문자열 (0) 2023.10.11 [프로그래머스] 홀짝에 따라 다른 값 반환하기 (0) 2023.10.11 [프로그래머스] n의 배수 (0) 2023.10.11 [프로그래머스] 두 수의 연산값 비교하기 (1) 2023.10.10 [프로그래머스]더 크게 합치기 (0) 2023.10.10