오늘은 리눅스를 설치하나보다
난 내 랩탑에 리눅스 설치하다가 거의 2일 날렷기때문에
선행학습을 했다고 할 수 있지
스터디는 일단
https://github.com/cyanindy/howwasit/tree/main/python_study
GitHub - cyanindy/howwasit: personal repository
personal repository. Contribute to cyanindy/howwasit development by creating an account on GitHub.
github.com
어제 문제를 풀어봤는데
이런문제를 인터넷 안보고 30분컷 내버리는 사람이 있네 ㄷㄷ
그리고 정보 공유 중에 한분께서
```python
from collections import Counter, defaultdict pythondictionary = {} mydictionary = defaultdict(int) counter = Counter([1,1,2,2,2,3,4,4]) try: print(pythondictionary['a']) except: print("Error") print(mydictionary['a']) print(counter)
```
을 올려주셧는데
Counter 함수 리스트를 카운트해서 딕셔너리로 반환해주는 걸 알려주셧다
파이썬은 참 별게 많아 ㅋㅋ
이후 새 문제
https://leetcode.com/problems/longest-palindrome-by-concatenating-two-letter-words/
Longest Palindrome by Concatenating Two Letter Words - LeetCode
Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview.
leetcode.com
대칭을 만들어서 그 길이를 반환하라는거같은데
ㅅㅂ 어케하누
입력값 범위가 1<=word.lenth<=10**5 라는데? ㅋㅋㅋㅋㅋㅋㅋㅋ
아 이거 하나씩 비교하면 절대안되고
뭐 어케하냐 ㅋㅋ