본문 바로가기

TIL

TIL 082223

Q: 퀵정렬과 병합정렬의 차이점은 무엇인가요?

A: 

https://gmlwjd9405.github.io/2018/05/10/algorithm-quick-sort.html

 

[알고리즘] 퀵 정렬(quick sort)이란 - Heee's Development Blog

Step by step goes a long way.

gmlwjd9405.github.io

병합

https://gmlwjd9405.github.io/2018/05/08/algorithm-merge-sort

 

[알고리즘] 합병 정렬(merge sort)이란 - Heee's Development Blog

Step by step goes a long way.

gmlwjd9405.github.io

 

Q: 버블 정렬/선택 정렬

A: 

버블

https://gmlwjd9405.github.io/2018/05/06/algorithm-bubble-sort.html

 

[알고리즘] 버블 정렬(bubble sort)이란 - Heee's Development Blog

Step by step goes a long way.

gmlwjd9405.github.io

선택

https://gmlwjd9405.github.io/2018/05/06/algorithm-selection-sort.html

 

[알고리즘] 선택 정렬(selection sort)이란 - Heee's Development Blog

Step by step goes a long way.

gmlwjd9405.github.io

 

  • 거꾸로. reverse. answer[::-1]

https://maks.tistory.com/entry/Python%EC%97%90%EC%84%9C-%EB%AC%B8%EC%9E%90%EC%97%B4%EC%9D%B4%EB%82%98-%EC%88%AB%EC%9E%90%EB%A5%BC-%EA%B1%B0%EA%BE%B8%EB%A1%9Creverse-%EC%B6%9C%EB%A0%A5%ED%95%98%EA%B8%B0

 

Python에서 문자열이나 숫자를 거꾸로(reverse) 출력하기

Python 이전에 나온 언어들로 작업하다가, 간혹 Python을 사용하면 재미있는 기능들이 많이 있다.그중 문자열이나 숫자를 거꾸로(Reverse) 출력하는 방법인데, C언어 같은 이전 언어들로 사용할 적에

maks.tistory.com

 

  • del 리스트[인덱스/슬라이스], 리스트.remove(값)
  • 리스트.pop(인덱스)
  • f"문자열 {변수} 문자열"

'TIL' 카테고리의 다른 글

TIL 082423  (0) 2023.08.24
TIL 082323  (0) 2023.08.23
TIL 082123  (0) 2023.08.21
TIL 081823  (0) 2023.08.18
TIL 081723  (0) 2023.08.17