File tree 1 file changed +6
-6
lines changed
src/CrackingTheCodingInterview/src/Book/Helper/Utility/Java 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -76,11 +76,11 @@ public static LinkedListNode linkedListWithValue(int N, int value) {
76
76
return root ;
77
77
}
78
78
79
- public static LinkedListNode createLinkedListFromArray (int [] vals ) {
80
- LinkedListNode head = new LinkedListNode (vals [0 ], null , null );
79
+ public static LinkedListNode createLinkedListFromArray (int [] values ) {
80
+ LinkedListNode head = new LinkedListNode (values [0 ], null , null );
81
81
LinkedListNode current = head ;
82
- for (int i = 1 ; i < vals .length ; i ++) {
83
- current = new LinkedListNode (vals [i ], null , current );
82
+ for (int i = 1 ; i < values .length ; i ++) {
83
+ current = new LinkedListNode (values [i ], null , current );
84
84
}
85
85
return head ;
86
86
}
@@ -121,8 +121,8 @@ public static String toBaseNString(int a, int base) {
121
121
122
122
String s = "" ;
123
123
while (true ) {
124
- int lastdigit = a % base ;
125
- s = lastdigit + s ;
124
+ int lastDigit = a % base ;
125
+ s = lastDigit + s ;
126
126
a = a / base ;
127
127
if (a == 0 )
128
128
break ;
You can’t perform that action at this time.
0 commit comments