반응형

알고리즘 53

[리트코드 LeetCode] Excel Sheet Column (Python)

Excel Sheet Column https://leetcode.com/explore/interview/card/top-interview-questions-medium/113/math/817/ 분류: Top Interview Questions - Medium - Math Explore - LeetCode LeetCode Explore is the best place for everyone to start practicing and learning on LeetCode. No matter if you are a beginner or a master, there are always new topics waiting for you to explore. leetcode.com 문제 주어진 문자열 columnTi..

[리트코드 LeetCode] Factorial Trailing Zeroes (Python)

Factorial Trailing Zeroes https://leetcode.com/explore/interview/card/top-interview-questions-medium/113/math/816/ 분류: Top Interview Questions - Medium - Math Explore - LeetCode LeetCode Explore is the best place for everyone to start practicing and learning on LeetCode. No matter if you are a beginner or a master, there are always new topics waiting for you to explore. leetcode.com 문제 주어진 정수 n에..

[리트코드 LeetCode] Happy Numebr (Python)

Happy Number https://leetcode.com/explore/interview/card/top-interview-questions-medium/113/math/815 분류: Top Interview Questions - Medium - Math 문제 주어진 숫자 n이 happy한지 판단하는 알고리즘을 작성하라. happy number는 다음의 과정을 통해 결정된다 아무 양의 정수로 시작하여 숫자를 각 자릿수의 제곱의 합으로 바꿈 숫자가 1이 될 때까지 위의 과정을 반복하라 (1이 된다면 연산을 반복해도 계속 1에 머물 것이고, 1이 되지 않는다면 영원히 1이 없는 사이클이 반복될 것임) 1이 되어 끝나는 숫자는 happy하다. type n: int / rtype: bool 예시 Exampl..

[리트코드 (LeetCode)] Kth Largest Element in an Array (Python)

Kth Largest Element in an Array https://leetcode.com/explore/interview/card/top-interview-questions-medium/110/sorting-and-searching/800/ 분류: Top Interview Questions - Medium - Sorting and Searching Explore - LeetCode LeetCode Explore is the best place for everyone to start practicing and learning on LeetCode. No matter if you are a beginner or a master, there are always new topics waiting for y..

[리트코드 (LeetCode)] Merge Two Sorted Lists: Linked List (Python)

Merge Two Sorted List https://leetcode.com/explore/featured/card/top-interview-questions-easy/93/linked-list/771/ 분류: Top Interview Questions - Easy - Linked List Explore - LeetCode LeetCode Explore is the best place for everyone to start practicing and learning on LeetCode. No matter if you are a beginner or a master, there are always new topics waiting for you to explore. leetcode.com 문제 두 개의 ..

[리트코드 (LeetCode)] Missing Number (Python)

Missing Number https://leetcode.com/explore/featured/card/top-interview-questions-easy/99/others/722/ 분류: Top Interview Questions - Easy - Others Explore - LeetCode LeetCode Explore is the best place for everyone to start practicing and learning on LeetCode. No matter if you are a beginner or a master, there are always new topics waiting for you to explore. leetcode.com 문제 주어진 배열 nums는 [0, n] 범위..

[리트코드 (LeetCode)] Valid Parentheses (Python)

Valid Parentheses https://leetcode.com/explore/featured/card/top-interview-questions-easy/99/others/721/ 분류: Top Interview Questions - Easy - Others Explore - LeetCode LeetCode Explore is the best place for everyone to start practicing and learning on LeetCode. No matter if you are a beginner or a master, there are always new topics waiting for you to explore. leetcode.com 문제 주어진 문자열 s는 문자 ‘(’, ..

[리트코드 (LeetCode)] Pascal's Triangle (Python)

Pascal’s Triangle https://leetcode.com/explore/featured/card/top-interview-questions-easy/99/others/601/ 분류: Top Interview Questions - Easy - Others Explore - LeetCode LeetCode Explore is the best place for everyone to start practicing and learning on LeetCode. No matter if you are a beginner or a master, there are always new topics waiting for you to explore. leetcode.com 문제 주어진 정수 numRow에 대해 파..

알고리즘 벼락치기에 대한 보고

알고리즘 공부를 언제 처음 시작했냐고 묻는다면 작년 1월쯤이었던 것 같다. 2학년 2학기에 자료구조를 수강한 직후 선배가 하는 스터디에 슥 들어가서 문제를 풀었는데 내용에 대한 깊은 이해나 주도적인 사고 없이 그냥 ... 흐르는대로 ... 스터디 날짜가 다가오는대로... 어떻게든 문제를 풀거나 모범 답안을 이해하려고 노력해서 스터디에 참여하곤 했다. 지금 생각해보면 왜 그런 짓을 했나 싶고 날 견뎌준 선배에게 너무나 감사하다. 심지어 막 스터디를 시작했을 때는 할줄 아는 언어가 2학년 내내 배운 자바 뿐이라 (유니티 하면서 C#을 쓰긴 했는데 코테용으로는 좀) 처음에는 자바로 코드를 쓰다가 두달쯤 후부터는 파이썬을 배워서 파이썬으로 풀었다. 그러고 나서 22년 상반기까지 어영부영 파이썬으로 조금씩 풀다가..

알고리즘 2023.04.09
반응형