Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[week6] 백준 10811번 문제 #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

[week6] 백준 10811번 문제 #2

wants to merge 1 commit into from

Conversation

sunnny619
Copy link
Collaborator

Basket 클래스

  • Basket 클래스는 바구니 배열을 관리
  • 생성자 Basket(int n)은 n개의 바구니를 초기화
  • reverse(int start, int end) 메서드는 주어진 범위의 바구니를 역순으로 바꿈
  • printBaskets() 메서드는 현재 바구니의 상태를 출력

Main 클래스

  • main 메서드에서 사용자로부터 입력을 받고, Basket 객체를 생성
  • 주어진 횟수만큼 역순으로 바꾼 후, 결과를 출력

@sunnny619 sunnny619 self-assigned this Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant