• Feed
  • Discussions
1158

1158

#1158
0 followers·1 articles

1158

#1158·0 followers·1 articles
1158
Soyulia
Soyulia
soyulia.hashnode.dev·Aug 20, 2024
Aug 20, 2024

[백준] 1158 - 요세푸스 (with. Python)

💡문제 분석 요약 -- 문제 -- 입력 : N, K(<=N) 1 부터 N 까지 원을 이룸 순서대로 K번째 사람을 제거 N명의 사람이 모두 제거될 때까지 계속 진행 즉, 요세푸스 순열은 원에서 사람들이 제거되는 순서 (N, K) 💡알고리즘 설계 input을 통해 N, K 입력 사람 리스트, 결과 리스트 생성 사람들이 다 나갈 때 까지 반복문 생성 popleft로 사람 리스트에 넣어주고 인덱스 2번 자리 값은 결과 리스트로 넣어...

Discuss·9 reads
1158

Changelog

New steps component and improved accessibility on Hashnode's blog and docs product.

New steps component and improved accessibility on Hashnode's blog and docs product.

Nov 05, 2024·
new

Trending Articles

KIVA Blockchain Is Flipping the Script: A Transparent Web3 Built for You, Not the Hype"

Naomi Antia Benson·31 reads

The Future of Web3 Tools Is Here — Meet BiyaPay

aaron ubokobong·17 reads

Life2App: The AI-Powered Life OS That Lets You Own Your Data and Destiny

Ekemini David ·12 reads

Top commenters this week

nandini
nandini
Sonu Goswami
Sonu Goswami
c6mx37g36
c6mx37g36
Umang Suthar
Umang Suthar
Emma Martin
Emma Martin

Writing Challenges

#2Articles1Week Challenge

Become better at technical writing; accept Hashnode's writing challenge for four weeks.

#2Articles1Week Challenge
#WomenWhoTech

Share your story, achievements, or experiences as a woman, non-binary folk in tech or as a #WomenWhoTech ally!

#WomenWhoTech
Self Starter

Publish your first article on Hashnode and become a self starter!

Self Starter
Serial Blogger

Publish an article every day for 7 days and earn a cool serial blogger badge!

Serial Blogger
Talk of the town

Write a story that drives amazing engagement on Hashnode and become the talk of the town!

Talk of the town
Word Warrior

Write an in-depth article on your Hashnode blog that's more than 2000 words and become a word warrior!

Word Warrior