Loading...
Is this your company?
Find Binary GAP of zero between an integer for example integer 9 will be represented as 1001, so here binary gap of zero is 2 and so on
Anonymous
for( int i = 0 ; i < 30 ; ++i ) { }
public int solution(int N) { int binaryGap = 0; String binaryString = Integer.toBinaryString(N); char[] characters = binaryString.toCharArray(); int j = 0; Character c; for (int i = 0; i binaryGap ){ binaryGap = j; } j = 0; } } System.out.println(binaryGap); return binaryGap; }
Check out your Company Bowl for anonymous work chats.
Get actionable career advice tailored to you by joining more bowls.
Stay ahead in opportunities and insider tips by following your dream companies.
Get personalised job recommendations and updates by starting your searches.