전체 글
-
[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