목록F2. Problem & Solving (33)
Silver Library (Archived)
Good news is; the problem and solving process is now challengible condition thanks to syncing the thought process. And the matter is; only 'easy' difficulty level. Hopefully I can make half of it from the medium level as well. Patient...don't do anything stupid. current routine: - P&S, analyse the thought process. - P&S, attempt solving the problem. - least 20-30 mins. - Compare and analyse 'how..
언제부턴가, 블로그에 일일히 적는건 과시용이란 생각이 들어서 꾸준히 타인의 문제 풀이과정을 참고해보았습니다. 그냥 구현하는게 아니라, '왜 저렇게 구현했나' 라는 '흐름을 구현' 하는 것에 집중을 했습니다. 거의 1월 중반부터 지금까지 다시 알고리즘만 집중적으로 해 댔는데, 솔직히 말해서 leetcode easy 문제들을 제한적으로 풀 수 있는 수준입니다. 그것도 JS가 아닌 파이선으로 말이죠. 가장 자신 있는 것은, 이미 기존에 구현된 코드를 보고, 어떤 흐름으로 구현 된 코드인가 라는 걸 설명할 수 있는 것. 그리고 가장 문제인 것은, for 반복문을 써서 array 배열 위치를 지정하도록 + - 구성한 다음, 예외 조건문을 붙이면 작동한다는 구상은 가는데... 아무래도 기존에 풀어본 문제를 다시 한..
QuickSort https://www.geeksforgeeks.org/quick-sort/ Always pick first element as pivot. Always pick last element as pivot (implemented below) Pick a random element as pivot. Pick median as pivot. The order of its process should be done in linear time. This is divide and conquer algorithm. Merge Sort https://www.geeksforgeeks.org/merge-sort/ Like QuickSort, this is divide and conquer algorithm. h..
이 문제는 주어진 조건대로 입력해서 출력을 해 내는것이 특징. 전작과 다를 건 없지만, 표기법에서 배울점이 있다. A,B,C = map(int,input().split()) A,B,C = input().split() A = int(A) B = int(B) C = int(C) print((A+B)%C, ((A%C)+(B%C))%C, (A*B)%C, ((A%C)*(B%C))%C, sep="\n") 필자가 이해한 기존의 방식은 다음과 같다. A, B, C = input().split() A = int(A) B = int(B) C = int(C) print((A+B)%C) print(((A%C)+(B%C))%C) print((A*B)%C) print(((A%C)*(B%C))%C) 복습. 1. map 입력 후, ..