본문 바로가기

Algorithm/Leet Code

(124)
LeetCode #884 UncommonWordsFromTwoSentences. Algorithm,알고리즘,LeetCode,Codefights,CodeSignal,코드파이트,코드시그널,예제,그래프,Graph,example,c++,java,재귀,recursive,datastructure,techinterview,coding,코딩인터뷰,기술면접 LeetCode #884 UncommonWordsFromTwoSentences. Algorithm,알고리즘,LeetCode,Codefights,CodeSignal,코드파이트,코드시그널,예제,그래프,Graph,example,c++,java,재귀,recursive,datastructure,techinterview,coding,코딩인터뷰,기술면접 Runtime: 0 ms, faster than 100.00% of C++ online submissions for Uncommon Words from Two Sentences. Memory Usage: 9 MB, less than 75.00% of C++ online submissions for Uncommon Words from Two Sentences. Leet..
LeetCode #841 KeysAndRooms. Algorithm,알고리즘,LeetCode,Codefights,CodeSignal,코드파이트,코드시그널,예제,그래프,Graph,example,c++,java,재귀,recursive,datastructure,techinterview,coding,코딩인터뷰,기술면접 LeetCode #841 KeysAndRooms. Algorithm,알고리즘,LeetCode,Codefights,CodeSignal,코드파이트,코드시그널,예제,그래프,Graph,example,c++,java,재귀,recursive,datastructure,techinterview,coding,코딩인터뷰,기술면접 Runtime: 8 ms, faster than 94.96% of C++ online submissions for Keys and Rooms. Memory Usage: 10.8 MB, less than 80.00% of C++ online submissions for Keys and Rooms. 각 방은 그래프의 vertex 가 되고, 키는 어느 곳을 향하는 arc 인지 나타내는 그래프 문제 Ea..
LeetCode #226 InvertBinaryTree. Algorithm,알고리즘,LeetCode,Codefights,CodeSignal,코드파이트,코드시그널,예제,문제해결능력,example,c++,java,재귀,recursive,datastructure,techinterview,coding,코딩인터뷰,기술면접,연결리.. LeetCode #226 InvertBinaryTree. Algorithm,알고리즘,LeetCode,Codefights,CodeSignal,코드파이트,코드시그널,예제,문제해결능력,example,c++,java,재귀,recursive,datastructure,techinterview,coding,코딩인터뷰,기술면접,연결리스트 Runtime: 0 ms, faster than 100.00% of C++ online submissions for Invert Binary Tree. Memory Usage: 9.8 MB, less than 5.45% of C++ online submissions for Invert Binary Tree. LeetCode #226 Q. Invert a binary tree. 이진트리..
LeetCode #951 FlipEquivalentBinaryTrees. Algorithm,알고리즘,LeetCode,Codefights,CodeSignal,코드파이트,코드시그널,예제,문제해결능력,example,c++,java,재귀,recursive,datastructure,techinterview,coding,코딩인터뷰,기술면접,.. LeetCode #951 FlipEquivalentBinaryTrees. Algorithm,알고리즘,LeetCode,Codefights,CodeSignal,코드파이트,코드시그널,예제,문제해결능력,example,c++,java,재귀,recursive,datastructure,techinterview,coding,코딩인터뷰,기술면접,연결리스트 Runtime: 0 ms, faster than 100.00% of C++ online submissions for Flip Equivalent Binary Trees. Memory Usage: 11.7 MB, less than 57.14% of C++ online submissions for Flip Equivalent Binary Trees. LeetCode #95..
LeetCode #0627 SwapSalary. Algorithm,알고리즘,LeetCode,Codefights,CodeSignal,코드파이트,코드시그널,예제,문제해결능력,example,c++,java,재귀,recursive,datastructure,techinterview,coding,코딩인터뷰,기술면접,연결리스트,.. LeetCode #0627 SwapSalary. Algorithm,알고리즘,LeetCode,Codefights,CodeSignal,코드파이트,코드시그널,예제,문제해결능력,example,c++,java,재귀,recursive,datastructure,techinterview,coding,코딩인터뷰,기술면접,연결리스트, Database, 데이터베이스, mysql, mssql, query Runtime: 147 ms, faster than 68.97% of MySQL online submissions for Swap Salary. Memory Usage: N/A LeetCode #627 Q. 아래와 같은 salary 라는 테이블이 주어지는데, m = male 을 뜻하고, f = female 을 뜻한다. 모든 ..
LeetCode #0595 BigCountries. Algorithm,알고리즘,LeetCode,Codefights,CodeSignal,코드파이트,코드시그널,예제,문제해결능력,example,c++,java,재귀,recursive,datastructure,techinterview,coding,코딩인터뷰,기술면접,연결리스.. LeetCode #0595 BigCountries. Algorithm,알고리즘,LeetCode,Codefights,CodeSignal,코드파이트,코드시그널,예제,문제해결능력,example,c++,java,재귀,recursive,datastructure,techinterview,coding,코딩인터뷰,기술면접,연결리스트, Database, 데이터베이스, mysql, mssql, query Runtime: 221 ms, faster than 71.47% of MySQL online submissions for Big Countries. Memory Usage: N/A LeetCode #595 Q. 위의 World 테이블이 있고, 나라명과 정보들이 들어가있다. 국토 면적이 3백만 스퀘어 km 를 넘거나, 인구..
LeetCode #867 TransposeMatrix. Algorithm,알고리즘,LeetCode,Codefights,CodeSignal,코드파이트,코드시그널,예제,문제해결능력,example,c++,java,재귀,recursive,datastructure,techinterview,coding,코딩인터뷰,기술면접,연결리스.. LeetCode #867 TransposeMatrix. Algorithm,알고리즘,LeetCode,Codefights,CodeSignal,코드파이트,코드시그널,예제,문제해결능력,example,c++,java,재귀,recursive,datastructure,techinterview,coding,코딩인터뷰,기술면접,연결리스트 Runtime: 28 ms, faster than 58.04% of C++ online submissions for Transpose Matrix. Memory Usage: 11.8 MB, less than 23.08% of C++ online submissions for Transpose Matrix. LeetCode #867 Q. Given a matrix A, return the ..
LeetCode #1046 LastStoneWeight. Algorithm,알고리즘,LeetCode,Codefights,CodeSignal,코드파이트,코드시그널,예제,문제해결능력,example,c++,java,재귀,recursive,datastructure,techinterview,coding,코딩인터뷰,기술면접,연결리.. LeetCode #1046 LastStoneWeight. Algorithm,알고리즘,LeetCode,Codefights,CodeSignal,코드파이트,코드시그널,예제,문제해결능력,example,c++,java,재귀,recursive,datastructure,techinterview,coding,코딩인터뷰,기술면접,연결리스트 Runtime: 0 ms, faster than 100.00% of C++ online submissions for Last Stone Weight. Memory Usage: 8.3 MB, less than 100.00% of C++ online submissions for Last Stone Weight. LeetCode #1046 Q. We have a collection of r..