You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: EASY/src/easy/AddBinary.java
+15-2
Original file line number
Diff line number
Diff line change
@@ -14,10 +14,23 @@ public class AddBinary {
14
14
//Tricks and things learned that could be learned:
15
15
//1. use StringBuilder.reverse() function! Nice!
16
16
//2. if a numeric number is represented/stored in String, how to get its value: use Character.getNumericValue(s.charAt(i))
17
-
//3. directly adding/subtracting chars will end up working with their ASCII numbers, e.g. chars[0] = 'a', chars[1] = 'b', then chars[0] + chars[1] will become 195
17
+
//3. directly adding/subtracting chars will end up working with their ASCII numbers, e.g. chars[0] = 'a', chars[1] = 'b', then chars[0] + chars[1] will become 195
0 commit comments