Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion homework4.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,12 @@
1. What is .gitignore? You can write the answer either in Korean or English.
2. Why do Github users need an SSH key pair? (Users can use either SSH key pair or github account info.) Please write down a brief explanation of SSH key.

.gitignore이란 진행 중인 프로젝트에 원치 않는 특정 파일 또는 디렉토리 등을 Git의 관리 대상에서
제외할 수 있도록 하는 설정 File로 볼 수 있다.

2. Why do Github users need an SSH key pair? (Users can use either SSH key pair or github account info.) Please write down a brief explanation of SSH key.

SSH key는 public key 암호 방식인데, 이는 우리가 일반적으로 사용하는 아이디-비밀번호 방식보다
더 높은 수준의 보안을 제공한다. 키를 생성하면 비공개키와 공개키 2개의 키가 만들어지는데, 이 중
공개키는 항상 노출의 위험이 있다. 반면 비공개키는 노출의 위험이 거의 없으며, 따라서 클라이언트가
서버에 어떤 정보를 요청했는지는 해커들이 상대적으로 알기 쉬우나, 서버가 클라이언트에 어떤 정보를 보냈는지는
알기가 매우 어렵다.
13 changes: 9 additions & 4 deletions homework4/Source.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,15 @@ int main()

int* output = new int[arrsize];
cout << "Array output: ";

/***********************************
Implement the code here!
************************************/
for (int i = 0, i < arrsize; i++) {
int n = 0;
for (int j = 0, j < arrsize; j++) {
if (arr[i] > arr[j]) {
n += 1;
}
output[i] = n;
}
}

for (int i = 0; i < arrsize; i++) {
cout << output[i] << " ";
Expand Down