🎧 New: AI-Generated Podcasts Turn your study notes into engaging audio conversations. Learn more

이진 분할 알고리즘 퀴즈 - bisect 모듈 사용법 알아보기
7 Questions
2 Views

이진 분할 알고리즘 퀴즈 - bisect 모듈 사용법 알아보기

Created by
@RapidTortoise

Podcast Beta

Play an AI-generated podcast conversation about this lesson

Questions and Answers

Bisect 모듈은 무엇을 지원하나요?

  • 리스트에서 중복 항목을 제거하는 것을 지원
  • 정렬된 리스트를 삽입 후에 다시 정렬할 필요 없도록 지원 (correct)
  • 리스트를 무작위로 섞는 것을 지원
  • 리스트의 모든 항목을 역순으로 정렬하는 것을 지원
  • Bisect 모듈은 어떤 알고리즘을 사용하나요?

  • 버블 정렬 알고리즘
  • 선택 정렬 알고리즘
  • 선형 분할 알고리즘
  • 이진 분할 알고리즘 (correct)
  • Bisect.bisect_left(a, x, lo=0, hi=len(a), *, key=None) 함수는 무엇을 찾아줍니까?

  • x의 위치를 리스트 a에서 찾아줍니다. (correct)
  • x를 리스트 a에 추가합니다.
  • a에서 x를 제거합니다.
  • a 리스트의 평균값을 구합니다.
  • Bisect.bisect_right(a, x, lo=0, hi=len(a), *, key=None) 함수는 무엇을 찾아줍니까?

    <p>x를 리스트 a에 추가합니다.</p> Signup and view all the answers

    Bisect.insort_left(a, x, lo=0, hi=len(a), *, key=None) 함수는 무엇을 수행하나요?

    <p>x를 a 리스트에 삽입하고 정렬된 순서를 유지합니다.</p> Signup and view all the answers

    Bisect.insort_right(a, x, lo=0, hi=len(a), *, key=None) 함수는 무엇을 수행하나요?

    <p>a 리스트의 항목들을 역순으로 정렬합니다.</p> Signup and view all the answers

    Bisect 모듈에서 추가된 파라미터는 무엇인가요?

    <p>key</p> Signup and view all the answers

    More Quizzes Like This

    Python Classes Overview
    8 questions
    Python Module Flashcards - Edube Module 1
    11 questions
    Introduction to Computers and Python Exercises
    19 questions
    Use Quizgecko on...
    Browser
    Browser