Algorithm/leetcode(python)(4)
-
[leetcode] 1010. Pairs of Songs With Total Duration Divisible by 60
- 이전 블로그에서 2020. 7. 15. 에 본인이 직접 작성한 포스트를 옮겨온 글입니다. 1. 문제분석 https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/ Pairs of Songs With Total Durations Divisible by 60 - 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 난이도 : easy 2. 풀이 - 첫번째 시도는 Naive 하게 무..
2021.09.05 -
[leetcode] 509. Fibonacci Number (2)
- 이전 블로그에서 2020. 7. 14. 에 본인이 직접 작성한 포스트를 옮겨온 글입니다. https://leetcode.com/problems/fibonacci-number/solution/ Fibonacci Number - 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 3. 다른풀이 라고 했지만 일단 solution으로 나와있는 모든 풀이를 하나씩 살펴보자. 1) Recursion 위의 그림이 재귀 방법으로는 문제 풀이가 어렵다는 점을 잘 설명해주고 있다...
2021.09.05 -
[leetcode] 509. Fibonacci Number
- 이전 블로그에서 2020. 7. 6. 에 본인이 직접 작성한 포스트를 옮겨온 글입니다. 출처: https://june13.tistory.com/12?category=873278 [Made for More] 1. 문제분석 https://leetcode.com/problems/fibonacci-number/ Fibonacci Number - 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 난이도 : easy Note: 0 ≤ N ≤ 30. 피보나치 수열 문제이다...
2021.09.05 -
[leetcode] 27. Remove element
- 이전 블로그에서 2020. 7. 3. 에 본인이 직접 작성한 포스트를 옮겨온 글입니다. 출처: https://june13.tistory.com/10?category=873278 [Made for More] 1. 문제분석 https://leetcode.com/problems/remove-element/description/ Remove Element - 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 난이도 : easy 간단히 nums 라는 array와 val이..
2021.09.05