개발 일지
-
GCD의 개념iOS 2018. 11. 30. 15:37
https://meetup.toast.com/posts/88 https://medium.com/@nimjea/grand-central-dispatch-in-swift-fdfdd8b22d52 https://magi82.github.io/gcd-01/ 마기님의 블로그에서는, Main Queue 메인 스레드(UI 스레드)에서 사용 되는 Serial Queue 입니다. 모든 UI 처리는 메인 스레드에서 처리를 해야 합니다.Global Queue 편의상 사용할수 있게 만들어 놓은 Concurrent Queue 입니다. Global Queue는 처리 우선 순위를 위한 qos(Quality of service) 파라메터를 제공합니다. 병렬적으로 동시에 처리를 하기때문에 작업 완료의 순서는 정할수 없지만 우선적으로 일..
-
[iOS] iOS 면접 질문 인터뷰 모음.iOS 2018. 11. 30. 08:21
아이오에스 부문의 면접예상 질문과 대답이 너무 잘 정리되어있는 치팅시트입니다. https://github.com/MaximAbramchuck/awesome-interview-questions#ios iserably at them during the 12 years I have been doing technical interviews.Technical QuestionsOk, now that we’ve got that covered, let’s jump into the technical questions.See here for the slideshare for all technical interview questions!Question 1On a UITableViewCell constructor:- (id)..
-
백준 2468번 C++ 풀이백준 2018. 11. 25. 23:29
#include #include #include using namespace std; int delta[4][2] = {{1, 0}, {-1, 0}, {0, 1}, {0, -1}}; bool isVisited[101][101]; int buffer[101][101]; int main() { cin.tie(NULL); ios::sync_with_stdio(false); int n; cin >> n; for (auto i=0; i buffer[i][j]; } } int answer = 0; for (auto height = 0; height
-
백준 1707번 C++ 풀이백준 2018. 11. 25. 18:29
#include #include #include using namespace std; int isVisited[20001]; vector buffer[20001]; int main() { cin.tie(NULL); ios::sync_with_stdio(false); int t; cin >> t; for (auto z=0; z> v >> e; for (auto i = 1; i to >> from; buffer[to].push_back(from); buffer[from].push_back(to); } bool isBipartite = true; for (auto i=1; i
-
백준 1987번 C++ 풀이카테고리 없음 2018. 11. 20. 21:09
#include #include #include #include #include #include using namespace std; int r, c; bool isVisited[21][21]; char buffer[21][21]; bool isCharVisited[30]; int delta[4][2] = {{1, 0}, {-1, 0}, {0, 1}, {0, -1}}; int maxNumber = 0; void dfs(int x, int y, int number){ maxNumber = max(maxNumber, number); for (auto i=0; i c; for (auto y=0; y buffer[x][y]; } } isCharVisited[buffer[0][0]-'A'] = true; isVi..
-
백준 14502번 C++ 풀이백준 2018. 11. 20. 20:38
문제가 요상하게 틀려서 브레이크포인트 고치면서 디버깅했습니다.하지만 브레이크포인트로는 힙의 밸류를 찍어주지 않더군요. LLDB에서 직접 확인해서 디버깅했습니다. #include #include #include #include #include #include using namespace std; int n, m; int buffer[9][9]; int temp[9][9]; int delta[4][2] = {{1, 0}, {-1, 0}, {0, 1}, {0, -1}}; int maxVirus; int findVirus(){ for (auto y=0; y