태그 : recursive 요약보기전체보기목록닫기
- [Codility] -2 Exponential array sum(0)2015.06.14
- [LeetCode OJ] Palindrome Partitioning - Medium(0)2015.05.27
- [LeetCode OJ] Binary Search Tree Iterator - Medium(0)2015.05.11
- [LeetCode OJ] Binary Tree Level Order Traversal II - Easy(4)2015.04.01
- [LeetCode OJ] Path Sum - Easy(0)2015.01.06
1
- Algorithm
- 2015/06/14 14:12
코딜리티에서 풀었던 문제인데 기억나는대로 그 문제 내용과내 솔루션을 적고자 한다.<Problem>입력 : Integer array (Array element 숫자 범위 : 0 ~ 10000000, Array length 범위 : 0 ~ 100000)결과 : 입력받은 Array의 각 요소 x 에 대해 f(x)의 총합을 구하여라 &nb...
- Algorithm
- 2015/05/27 00:09
<Problem Link>https://leetcode.com/problems/palindrome-partitioning/<Comment>먼저 문제를 이해해보면,Palindrome : 회문, 앞에서부터 혹은 뒤에서부터 읽어도 문자배열이 같은 단어자, 어떤 입력 문자열에 대해서,생성 가능한 Palindrome 문자열만으로 이...
- Algorithm
- 2015/05/11 22:28
<Problem Link>https://leetcode.com/problems/binary-search-tree-iterator/<Comment>이문제는 일단 제대로 이해하는것이 반이상을 먹고 들어간다.Binary Search Tree... 이다Binary Tree는 누구나 쉽게 머릿속에 떠올릴 수 있으나,Binary Search ...
- Algorithm
- 2015/04/01 23:19
<Problem Link>https://leetcode.com/problems/binary-tree-level-order-traversal-ii/<Comment>문제자체를 보면 Tree traversal 방식 중, Breadth first search를 떠올리기가 쉽지만..사실 조금만 더 생각해보면 그냥 Pre-order (dept...
- Algorithm
- 2015/01/06 22:03
<Problem Link>https://oj.leetcode.com/problems/path-sum/<Comment>Recursive를 활용한 간단한 구현!그냥 깔끔하게 끝냈고, 뭐 딱히 살펴보아야 할 부분은 없는 듯 싶다 <Solution> Python - Accepted# Definition for a &nb...
1