2025/04 3

[숫자 뒤집기] Beautiful Days at the Movies

문제 링크: https://www.hackerrank.com/challenges/beautiful-days-at-the-movies/problem?isFullScreen=true Beautiful Days at the Movies | HackerRankFind the number of beautiful days.www.hackerrank.com 분류: Problem Solving (Basic) 🎬 문제 요약당신은 i일부터 j일까지 영화를 봐.영화가 "아름다운 날(Beautiful Day)" 이 되려면 다음 조건을 만족해야 해:(일자 - 그 일자의 숫자를 뒤집은 값)을 k로 나눈 결과가 정수여야 함 (즉, 나누어떨어져야 함)💡 핵심 포인트주어진 범위 [i, j]를 순회숫자 뒤집기 함수 reverse(n..

[홀짝] Utopian Tree

문제 링크: https://www.hackerrank.com/challenges/utopian-tree/problem?isFullScreen=true Utopian Tree | HackerRankPredict the height of the tree after N growth cycles.www.hackerrank.com 타입: Problem Solving (Basic) 🌳 문제 개요: Utopian Tree유토피아 나무는 봄과 여름, 1년에 두 번 성장하는 특이한 나무야.봄에는 키가 2배로 자라고,여름에는 키가 1미터만큼 자라.처음 나무의 키는 1미터부터 시작해.주어진 성장 사이클 수(n) 만큼 나무가 자랐을 때, 최종 키를 구하는 문제야. 📘 성장 규칙초기 키: 1짝수 번째 사이클 (0, 2, 4..

[이진탐색 구현] Climbing the Leaderboard

문제 링크: https://www.hackerrank.com/challenges/climbing-the-leaderboard/problem?isFullScreen=true  Climbing the Leaderboard | HackerRankHelp Alice track her progress toward the top of the leaderboard!www.hackerrank.com분류: Problem Solving (Basic) 문제 내용"중복 순위가 있는 랭킹 시스템에서 새 점수의 순위를 계산" 하는 문제 🧩 문제 설명📘 상황기존 플레이어들의 점수가 있음: ranked = [100, 100, 50, 40, 40, 20, 10]새로운 플레이어 Alice가 게임을 하면서 점수를 획득함: player..