본문 바로가기

분류 전체보기

(426)
LeetCode #739 DailyTempertures. Algorithm,알고리즘,LeetCode,Codefights,CodeSignal,코드파이트,코드시그널,예제,문제해결능력,example,c++,java,재귀,recursive,datastructure,techinterview,coding,코딩인터뷰,기술면접,연결리.. LeetCode #739 DailyTempertures. Algorithm,알고리즘,LeetCode,Codefights,CodeSignal,코드파이트,코드시그널,예제,문제해결능력,example,c++,java,재귀,recursive,datastructure,techinterview,coding,코딩인터뷰,기술면접,연결리스트 Terrible performance Runtime: 1828 ms, faster than 5.04% of C++ online submissions for Daily Temperatures. Memory Usage: 16.4 MB, less than 33.21% of C++ online submissions for Daily Temperatures. LeetCode #739 Q. Gi..
LeetCode #724 FindPivotIndex. Algorithm,알고리즘,LeetCode,Codefights,CodeSignal,코드파이트,코드시그널,예제,문제해결능력,example,c++,java,재귀,recursive,datastructure,techinterview,coding,코딩인터뷰,기술면접,연결리스트 LeetCode #724 FindPivotIndex. Algorithm,알고리즘,LeetCode,Codefights,CodeSignal,코드파이트,코드시그널,예제,문제해결능력,example,c++,java,재귀,recursive,datastructure,techinterview,coding,코딩인터뷰,기술면접,연결리스트 Runtime: 28 ms, faster than 80.93% of C++ online submissions for Find Pivot Index. Memory Usage: 9.9 MB, less than 67.87% of C++ online submissions for Find Pivot Index. LeetCode #705 Q. Given an array of integers nums..
How to remove specific value in vector. 벡터 배열에서 특정 값을 지우는 방법. c++, stl // removes all elements with the value 5 vector.erase( std::remove( vector.begin(), vector.end(), 5 ), vector.end() ); erase function -> erase from specific position to specific position. remove function -> move specific values to the end, and return the most front index iterator of that specific values moved. erase 함수는 (특정위치1 ~ 특정위치2) 까지 범위의 값을 지워준다. remove 함수는 (특정위치1 ~ 특정위치2) 까지 범위의 ( value ) ..
LeetCode #705 RelativeRanks. Algorithm,알고리즘,LeetCode,Codefights,CodeSignal,코드파이트,코드시그널,예제,문제해결능력,example,c++,java,재귀,recursive,datastructure,techinterview,coding,코딩인터뷰,기술면접,연결리스트 LeetCode #705 RelativeRanks. Algorithm,알고리즘,LeetCode,Codefights,CodeSignal,코드파이트,코드시그널,예제,문제해결능력,example,c++,java,재귀,recursive,datastructure,techinterview,coding,코딩인터뷰,기술면접,연결리스트 Runtime: 264 ms, faster than 11.44% of C++ online submissions for Design HashSet. Memory Usage: 35.8 MB, less than 98.26% of C++ online submissions for Design HashSet. Badest performance 그냥 vector 이용해서 해시셋 개념에 맞게 대충 만들었..
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..