MCPcopy Create free account
hub / github.com/Ayush7614/Daily-Coding-DS-ALGO-Practice / ni

Method ni

Hackerank/Java/Strong-password.java:122–140  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

120 }
121
122 private int ni()
123 {
124 int num = 0, b;
125 boolean minus = false;
126 while((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'));
127 if(b == '-'){
128 minus = true;
129 b = readByte();
130 }
131
132 while(true){
133 if(b >= '0' && b <= '9'){
134 num = num * 10 + (b - '0');
135 }else{
136 return minus ? -num : num;
137 }
138 b = readByte();
139 }
140 }
141
142 private long nl()
143 {

Callers 2

solveMethod · 0.95
naMethod · 0.95

Calls 1

readByteMethod · 0.95

Tested by

no test coverage detected