분류 전체보기60 python 공부할 것 - lambda - collections - zip 2020. 8. 23. [python] collections.Counter Collections.Counter() A counter tool is provided to support convenient and rapid tallies. It is a collection where elements are stored as dictionary keys and their counts are stored as dictionary values. Counts are allowed to be any integer value including zero or negative counts. The Counter class is similar to bags or multisets in other languages. elements() c = counter(a=4, b=2, c=0, d=-2) so.. 2020. 8. 23. 0627 / Gebru-LeCun episode about AI bias 25일의 글에 이은 AI bias에 대한 이야기. https://venturebeat.com/2020/06/26/ai-weekly-a-deep-learning-pioneers-teachable-moment-on-ai-bias/ AI Weekly: A deep learning pioneer’s teachable moment on AI bias Facebook chief AI scientist Yann LeCun got into a debate with Google AI ethics co-lead Timnit Gebru about bias, and there are lessons to draw from this. venturebeat.com 2020. 6. 27. 0625 / about AI bias 기술을 사용하는 사람들은 늘 기술을 사용함에 있어 책임감을 가져야 한다고 생각한다. 모든 개발 분야에 해당하는 생각이지만, 특히나 어떠한 데이터를 제공하는 서비스 개발에 있어서는 더더욱. 개발자가 제공한 데이터가 사용자의 단 하나의 데이터가 될 수도 있는 가능성-사용자가 서비스에 대한 신뢰로 단 한번만 사용하고 결론을 내려버리는. 을 생각해본다면 `좋은 데이터`에 대한 고민에 두 어깨가 무겁게 고민하는 개발자들이 이 세상에 가득 넘쳤으면 좋겠다-같이 일하고 싶어서. 멋지지 않나. 좋은 데이터란? 0626의 생각/ 좋은 데이터는 `좋은 데이터셋 + 좋은 개발자 마인드` 의 콜라보라 생각한다. 사실 좋은 개발자 마인드 위에서 좋은 데이터셋들이 구축된다고 생각이 들어서, 좋은 개발자 마인드에 우선순위를 주고 .. 2020. 6. 26. 0623 / iOS 14 https://www.cnet.com/news/ios-14-first-take-apple-launches-a-new-iphone-home-screen-siri-widgets-picture-in-picture-video-more/ iOS 14 first take: Apple launches a new iPhone home screen, Siri, widgets, picture-in-picture video and more There is also a new App Library, App Clips, Messaging features, a Translation app and the ability to unlock your car with your phone, too. www.cnet.com iOS 14 Ap.. 2020. 6. 23. 14502. 연구소 (0413) PASS from collections import deque import copy def bfs(arr): global virusInfo, maxV q = deque() for v in virusInfo: q.append(v) while q: dx = [0,1,0,-1] dy = [1,0,-1,0] si, sj = q.popleft() for k in range(4): ni = si + dx[k] nj = sj + dy[k] if 0 2020. 4. 13. [단계별로 풀어보기] 1차원 배열_All Pass fail better 하기 위해 다시 시작하는 애증의 알고리즘 실패를 쌓아 성공으로 만들고 만다 내가💪 쉬운 것부터 차근차근 다시. 10818. 최소, 최대 n = int(input()) nums = list(map(int, input().split())) for num in nums: if num > maxx : maxx = num if num maxx: maxx = num max_idx = i print(maxx) print(max_idx) 2577. 숫자의 개수 a = 1.. 2020. 4. 2. 4836. 색칠하기 T = int(input()) for tc in range(1, T+1): n = int(input()) # 도화지 준비 paper = [[0]*10 for _ in range(10)] for _ in range(n): r1, c1, r2, c2, color = map(int,input().split()) # 주어진 모서리대로 색칠 for i in range(c1, c2+1): for j in range(r1, r2+1): paper[i][j] += color # 겹치는 부분 == 3 ( 빨강 1 + 파랑 2) purple = 0 for i in range(10): for j in range(10): if paper[i][j] == 3: purple += 1 print('#{} {}'.format(tc,.. 2020. 3. 11. 1959. 두개의 숫자열 다른 사람들 코드를 보면 주석을 쓰는 사람/안쓰는 사람이 보인다, 확실히 평소에 쓰던 사람이 필요한 부분만 쏙쏙 골라 코드 이해하기 쉽게 쓴다. 코드 공유(또는 협업)할 때 굉장히 도움이 되는 부분이라 생각해서, 주석 쓰는 습관을 들이려 노력하는 중이다. 요즘 공부하고 있는 html이나 css 코드에도 코멘트를 의식적으로 넣으려 한다. 3월 9일의 풀이 T = int(input()) for tc in range(1, T+1): n, m = map(int, input().split()) num1 = list(map(int, input().split())) num2 = list(map(int, input().split())) mul = [] # 첫번째 리스트의 크기가 더 작을 경우 if n < m : for.. 2020. 3. 9. 4835. 구간합 예전에 푼 문제를 다시 풀어봤는데, 예전에도 슬라이싱, 이번에도 슬라이싱 사용해서 풀더라ㅋㅋㅋㅋㅋ 내장 함수를 최대한 사용하지 않으려 노력해봣당. 버블 소트도 다시 써봤는데, 그냥 minmax 두고 풀어도 되겠당. 1월 29일의 풀이 T = int(input()) for tc in range(1, T+1): N, M = map(int, input().split()) nums = list(map(int, input().split())) nums_sum = [] # M만큼 구간을 잘라서 합의 리스트(nums_sum)를 구해라. for i in range(0, N-M+1): nums_sum.append(sum(nums[i:i+M])) # 합의 리스트(nums_sum)의 max와 min을 찾아서 max-min을.. 2020. 3. 9. 이전 1 2 3 4 5 6 다음