Skip to content

Commit 8b29c6c

Browse files
Merge pull request TheAlgorithms#115 from RollandMichael7/patch-2
Update LowestBasePalindrome.java
2 parents 8f086c0 + 2d300b3 commit 8b29c6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Misc/LowestBasePalindrome.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public static int lowestBasePalindrome(int num) {
4646
String digits = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
4747

4848
while (!foundBase) {
49-
// Try from bases 2 to num (any number n in base n is 1)
49+
// Try from bases 2 to num-1
5050
for (base=2; base<num2; base++) {
5151
newNum="";
5252
while(num>0) {

0 commit comments

Comments
 (0)