본문 바로가기

Algorithm/Leet Code

(124)
LeetCode #804 UniqueMorseCodeWords. Algorithm,알고리즘,LeetCode,Codefights,CodeSignal,코드파이트,코드시그널,예제,문제해결능력,example,c++,java,재귀,recursive,datastructure,techinterview,coding,코딩인터뷰,기술면접,연결.. LeetCode #804 UniqueMorseCodeWords. Algorithm,알고리즘,LeetCode,Codefights,CodeSignal,코드파이트,코드시그널,예제,문제해결능력,example,c++,java,재귀,recursive,datastructure,techinterview,coding,코딩인터뷰,기술면접,연결리스트 Nice performance Runtime: 4 ms, faster than 94.68% of C++ online submissions for Unique Morse Code Words. Memory Usage: 9 MB, less than 72.20% of C++ online submissions for Unique Morse Code Words. LeetCode #804 ..
LeetCode #617 MergeTwoBinaryTrees. Algorithm,알고리즘,LeetCode,Codefights,CodeSignal,코드파이트,코드시그널,예제,문제해결능력,example,c++,java,재귀,recursive,datastructure,techinterview,coding,코딩인터뷰,기술면접,연결.. LeetCode #617 MergeTwoBinaryTrees. Algorithm,알고리즘,LeetCode,Codefights,CodeSignal,코드파이트,코드시그널,예제,문제해결능력,example,c++,java,재귀,recursive,datastructure,techinterview,coding,코딩인터뷰,기술면접,연결리스트 Pointer hell.. 포인터 지옥.. Runtime: 40 ms, faster than 86.90% of C++ online submissions for Merge Two Binary Trees. Memory Usage: 24 MB, less than 6.42% of C++ online submissions for Merge Two Binary Trees. LeetCode ..
LeetCode #605 CanPlaceFlowers. Algorithm,알고리즘,LeetCode,Codefights,CodeSignal,코드파이트,코드시그널,예제,문제해결능력,example,c++,java,재귀,recursive,datastructure,techinterview,coding,코딩인터뷰,기술면접,연결리스.. LeetCode #605 CanPlaceFlowers. Algorithm,알고리즘,LeetCode,Codefights,CodeSignal,코드파이트,코드시그널,예제,문제해결능력,example,c++,java,재귀,recursive,datastructure,techinterview,coding,코딩인터뷰,기술면접,연결리스트 문제 좀 이상함,, Weird problem,, Runtime: 16 ms, faster than 93.88% of C++ online submissions for Can Place Flowers. Memory Usage: 10.4 MB, less than 61.04% of C++ online submissions for Can Place Flowers. LeetCode #605 Q. ..
LeetCode #657 RobotReturnToOrigin. Algorithm,알고리즘,LeetCode,Codefights,CodeSignal,코드파이트,코드시그널,예제,문제해결능력,example,c++,java,재귀,recursive,datastructure,techinterview,coding,코딩인터뷰,기술면접,연결.. LeetCode #657 RobotReturnToOrigin. Algorithm,알고리즘,LeetCode,Codefights,CodeSignal,코드파이트,코드시그널,예제,문제해결능력,example,c++,java,재귀,recursive,datastructure,techinterview,coding,코딩인터뷰,기술면접,연결리스트 Nice performance Runtime: 16 ms, faster than 94.48% of C++ online submissions for Robot Return to Origin. Memory Usage: 10.3 MB, less than 52.06% of C++ online submissions for Robot Return to Origin. LeetCode #657..
LeetCode #1002 FindCommonCharacters. Algorithm,알고리즘,LeetCode,Codefights,CodeSignal,코드파이트,코드시그널,예제,문제해결능력,example,c++,java,재귀,recursive,datastructure,techinterview,coding,코딩인터뷰,기술면접,연결.. LeetCode #1002 FindCommonCharacters. Algorithm,알고리즘,LeetCode,Codefights,CodeSignal,코드파이트,코드시그널,예제,문제해결능력,example,c++,java,재귀,recursive,datastructure,techinterview,coding,코딩인터뷰,기술면접,연결리스트 간만에 보람있는 문제였고 성능 잘나옴 Runtime: 12 ms, faster than 94.94% of C++ online submissions for Find Common Characters. Memory Usage: 11.5 MB, less than 23.59% of C++ online submissions for Find Common Characters. LeetCod..
LeetCode #965 UnivaluedBinaryTree. Algorithm,알고리즘,LeetCode,Codefights,CodeSignal,코드파이트,코드시그널,예제,문제해결능력,example,c++,java,재귀,recursive,datastructure,techinterview,coding,코딩인터뷰,기술면접,연결.. LeetCode #965 UnivaluedBinaryTree. Algorithm,알고리즘,LeetCode,Codefights,CodeSignal,코드파이트,코드시그널,예제,문제해결능력,example,c++,java,재귀,recursive,datastructure,techinterview,coding,코딩인터뷰,기술면접,연결리스트 Performance 96% Memory 60% LeetCode #965 Q. A binary tree is univalued if every node in the tree has the same value. Return true if and only if the given tree is univalued. 이진트리의 모든 노드 값이 같은 값이면 univalued 라고 한다. u..
LeetCode #509 FibonacciNumber. Algorithm,알고리즘,LeetCode,Codefights,CodeSignal,코드파이트,코드시그널,예제,문제해결능력,example,c++,java,재귀,recursive,datastructure,techinterview,coding,코딩인터뷰,기술면접,연결리스.. LeetCode #509 FibonacciNumber. Algorithm,알고리즘,LeetCode,Codefights,CodeSignal,코드파이트,코드시그널,예제,문제해결능력,example,c++,java,재귀,recursive,datastructure,techinterview,coding,코딩인터뷰,기술면접,연결리스트 Performance 40% Memory 30% LeetCode #509 Q. The Fibonacci numbers, commonly denoted F(n) form a sequence, called the Fibonacci sequence, such that each number is the sum of the two preceding ones, starting from 0 and ..
LeetCode #506 RelativeRanks. Algorithm,알고리즘,LeetCode,Codefights,CodeSignal,코드파이트,코드시그널,예제,문제해결능력,example,c++,java,재귀,recursive,datastructure,techinterview,coding,코딩인터뷰,기술면접,연결리스트 LeetCode #506 RelativeRanks. Algorithm,알고리즘,LeetCode,Codefights,CodeSignal,코드파이트,코드시그널,예제,문제해결능력,example,c++,java,재귀,recursive,datastructure,techinterview,coding,코딩인터뷰,기술면접,연결리스트 Performance 10% Memory both 30% Super bad LeetCode #506 Q. Given scores of N athletes, find their relative ranks and the people with the top three highest scores, who will be awarded medals: "Gold Medal", "Silver Medal"..