Skip to content

Commit 58f423f

Browse files
fix 1290
1 parent 83326b5 commit 58f423f

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/main/java/com/fishercoder/solutions/_1290.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ public int getDecimalValue(ListNode head) {
1313
return Integer.parseInt(sb.toString(), 2);
1414
}
1515
}
16+
1617
public static class Solution2 {
1718
public int getDecimalValue(ListNode head) {
1819
int sum = 0;

src/test/java/com/fishercoder/_1290Test.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ public void test1() {
2626
head = LinkedListUtils.createSinglyLinkedList(Arrays.asList(1, 0, 1));
2727
assertEquals(5, solution1.getDecimalValue(head));
2828
}
29+
2930
@Test
3031
public void test2() {
3132
head = ListNode.createSinglyLinkedList(Arrays.asList(1, 1, 1));

0 commit comments

Comments
 (0)