[go: nahoru, domu]

Skip to content
This repository has been archived by the owner on Jun 19, 2020. It is now read-only.

Oncoder #35

Open
wants to merge 18 commits into
base: hojinjava
Choose a base branch
from
Open

Oncoder #35

wants to merge 18 commits into from

Conversation

HojinJava
Copy link
Collaborator

issue

issue #34

Copy link
Contributor
@kimsunoh kimsunoh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

오프라인 모임 때 리펙토링한 내용입니다.

}
int n = 0;
int xn = 0;
boolean flag = false;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for (int n = 0; n < l; n++ ) {
	if(this.isInRange(l, 2<<n, 2<<(n+1)){
		xn = n;
		break;
	}
}
  • 오프라인 미팅 같이 리펙토링한 내용 공유 드립니다.

return val;
}

public boolean getN(int key, double d, double e){
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

public boolean isInRange(int key, double st, double end){
	return st <= key && key <= end;
}
  • 오프라인 미팅 같이 리펙토링한 내용 공유 드립니다.
  • 비트연산 예시 링크 slack에 공유 드렸습니다.

for(M = 1; M * 2 <= N; M <<= 1);
vector<int> P(M*2);

for(int i=2;i*i<M*2;i++){
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i와 j로 만들수 있는 숫자들에는 '1'을 세팅하는 for문 입니다

@HojinJava HojinJava self-assigned this Aug 5, 2018
@HojinJava HojinJava changed the base branch from master to hojinjava August 5, 2018 07:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants