BinaryGap1 [codility] BinaryGap BinaryGap BinaryGapFind longest sequence of zeros in binary representation of an integer.Task Score93%Correctness93%PerformanceNot assessed 업로드 하기는 programmers의 문제들을 먼저 업로드 했지만, 사실은 이 문제가 제일 처음 푼 문제다.1이 있는 위치를 저장해주고, 그 거리를 계산해서 제일 큰 gap을 리턴한다. result가 -1이 나오는 경우에는 gap이 없는 것이므로 0을 반환하도록 처리해주면 된다. xxxxxxxxxx// you can also use imports, for example:// import java.util.*;// you can write to stdout .. 2018. 5. 22. 이전 1 다음