5주차 WIL 이번주.. 좀 더 열심히 할 수 있었는데. 아쉬움이 남는 한 주다.코드카타도 매일매일 다 못풀고 ㅜㅠ 갑자기 코드카타 난이도가 확 올라간 느낌이다.아니 어떻게든 돌아가게 만들어놓고 다른 풀이 확인해보면 ㅎㅎ.. 왜 이렇게 할생각을 못했나싶다. 나도 효율적이고 똑똑한 코드 짜고싶어 ..!✔️ 다음주는 일단 백트래킹부터 문제 풀어보고 시작하기 !!!✔️DFS, BFS 문제 풀기 WIL 2024.07.26
5주차 Day 5. set 자료형, 소프트웨어 설계 📑 파이썬 Set 자료형• 집합을 구현한 것으로 숫자, 문자, 문자열까지도 포함할 수 있다.• 셋 선언하기: set이름 = { 원소들 } 또는 = set() 으로 비어있는 set을 선언할 수 있다.• 원소들의 중복을 허용하지 않는다. • 순서가 없다. set자료형을 출력하면 매번 다른 순서로 출력된다.• 슬라이싱과 인덱싱이 불가하다.• set 자료형의 개별 원소에 접근하려면 리스트로 형변환하여 접근해야 한다. [ 메소드 ]• 원소 추가 .add() 여러 개의 원소를 추가하는 경우 .update([ ... , ... , ... ])• 원소 삭제 .remove() *해당 값이 없는 경우 에러가 발생하므로 에러 발생을 원치 않는다면 .discard() 메소드 사용.• 집합 연산: set자료형의.. TIL 2024.07.26