내일배움캠프 안드로이드2 [TIL] 07.31 https://1chanhue1.tistory.com/79>() for (i in genres.indices) { val " data-og-host="1chanhue1.tistory.com" data-og-source-url="https://1chanhue1.tistory.com/79" data-og-url="https://1chanhue1.tistory.com/79" data-og-image="https://blog.kakaocdn.net/dna/x576l/hyWGUbcxPH/AAAAAAAAAAAAAAAAAAAAAA3U2vNWl5fyvd2RLqI_29NYmxBYQ3Y5K67AkPjqyhJJ/img.png?credential=yqXZFxpELC7KVnFOS48ylbz2pIh7yKj8&expires=1753973999&allow_ip=&allow_referer=&signature=a2%2F2gAjrTsq78Koy2v7NBHy5Xok%3D 2024. 7. 31. [TIL] 07.08 https://1chanhue1.tistory.com/64 [프로그래머스 kotlin] 2개 이하로 다른 비트문제 해결 POINT 숫자가 짝수인 경우짝수를 이진법으로 변환했을때 마지막 비트는 무조건 0이다.따라서 마지막 비트를 0에서 1로 바꿔준 값이 답이기 때문에 숫자+1 값을 answer에 넣어준다.숫자가1chanhue1.tistory.com 2024. 7. 8. 이전 1 다음