본문 바로가기

반응형

전체 글

(290)
[LeetCode] 133. Clone Graph 문제 https://leetcode.com/problems/clone-graph/ Clone Graph - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com ——————————————————————————— 잠깐만 leetCode에서 그래프 문제는 처음이에요. 그래서 그런지, 그래프 개념은 있지만, leetCode의 그래프 문제에 대한 input과 output에 대한 이해가 어려웠어요. 문제나 input, output을 이해하셨다면, 문제 풀이에 문제 없어요. ——..
[LeetCode] 55. Jump Game 문제 https://leetcode.com/problems/jump-game/ Jump Game - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com ——————————————————————————— 잠깐만 이중 포문이 생각날수 있는데, 참아보세요. ——————————————————————————— 코드 class Solution { func canJump(_ nums: [Int]) -> Bool { var maxJumps = 1 for index in 0..
[LeetCode] 62. Unique Paths 문제 https://leetcode.com/problems/unique-paths/ Unique Paths - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com ——————————————————————————— 코드 class Solution { func uniquePaths(_ m: Int, _ n: Int) -> Int { var map: [[Int]] = Array(repeating: Array(repeating: 0, count: n), count: m) f..
[LeetCode] 91. Decode Ways 문제 https://leetcode.com/problems/decode-ways/ Decode Ways - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com ——————————————————————————— 잠깐만 이것 또한 체크하고 더하면서 진행해볼까요? ——————————————————————————— 코드 class Solution { func numDecodings(_ s: String) -> Int { var countFrom1: [Int] = Array(..
[LeetCode] 213. House Robber II 문제 https://leetcode.com/problems/house-robber-ii/ House Robber II - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com ——————————————————————————— 잠깐만 이 문제에선 첫번째 집에 대한 도둑질 여부가 중요해보이네요. 아주 잘 생각해보면 198. House Robber 문제의 코드를 재활용할 수 있겠는데요??? 먼저 문제 풀고 오세요. https://skillist.tistory.com/325 ..
[LeetCode] 198. House Robber 문제 https://leetcode.com/problems/house-robber/ House Robber - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com ——————————————————————————— 잠깐만 백준, 포도주 시식 문제 기억나세요? https://skillist.tistory.com/233?category=258048 DP - 2156. 포도주 시식 문제 www.acmicpc.net/problem/2156 2156번: 포도주 시식 효주는 포도..
[LeetCode] 377. Combination Sum IV 문제 https://leetcode.com/problems/combination-sum-iv/ Combination Sum IV - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com ——————————————————————————— 잠깐만 우리가 함께 풀었던 322 Coin Change 문제와 로직의 거의 비슷해요. https://skillist.tistory.com/253?category=469513 [LeetCode] 322. Coin Change 문제 leet..
[LeetCode] 139. Word Break 문제 https://leetcode.com/problems/word-break/ Word Break - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com ——————————————————————————— 잠깐만 word를 체크할때마다, 재귀함수를 호출하지 말고, 체크를 해볼까요???? ——————————————————————————— 코드 class Solution { func wordBreak(_ s: String, _ wordDict: [String]) -> B..
Unsplash - 16. 메모리 누수 확인 (진행중) 안녕하세요 Skillist입니다. 물 들어올때 노 저으라는 말이 있듯이, 진행한 프로젝트에 대한 성능체크, 메모리 누수 확인을 하고 있어요. 왜냐면 메모리 누수 확인 공부를 하고 있거든요. 기회가 된다면 "나를 돌아봐" 프로그램의 "박명수 - 이경규" 케미 보세요. 정말 꿀잼입니다. 너~~~무 재미있는데 왜 안떴는지 모르겠어요. 번외로 2006년 3월 11일에 방영된 "무한도전"의 "이경규 - 비난특집"도 추천합니다.ㅋㅋㅋㅋㅋㅋ 아이 오브 살쾡이 본론으로 돌아와서 "Unsplash" 프로젝트에 대한 메모리 누수를 확인해볼게요. 정성스럽게 글 작성완료했는데;;;;;;;;;;;;;; 내용 다 날라가버렸네요 ㅠㅜㅜㅠㅠㅠㅠㅠ 다시 작성해봅니다 ——————————————————————————————————————..
번역기 앱 - 13. RxSwift의 메모리 누수 체크 안녕하세요. Skillist입니다 성능 체크가 생각난 김에, RxSwift 프로젝트로 진행해보려고 했습니다. 하지만, RxSwift의 메모리 릭 확인 방법이 기존과 같나요??? 잘 모르겠어서 검색해봤습니다. ——————————————————————————————————————————————————— 우선 좋은 영상을 공유드립니다. https://www.youtube.com/watch?v=687KaKJ8B7U&t=309s 곰튀김님의 영상인데, RxSwift의 메모리 누수에 대해서 아주 잘 설명해주시네요. 곰튀김님의 RxSwift 영상은 정말 최고입니다. RxSwift 공부중이라면 풀영상(약 4시간 정도)을 추천합니다. 이미 봤지만, 심심할때 한번 더 봐야겠네요. 댓글에도 답변 주셨는데요, 한번 봐보세요. ..

반응형