Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit58f423f

Browse files
fix 1290
1 parent83326b5 commit58f423f

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
returnInteger.parseInt(sb.toString(),2);
1414
}
1515
}
16+
1617
publicstaticclassSolution2 {
1718
publicintgetDecimalValue(ListNodehead) {
1819
intsum =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
publicvoidtest2() {
3132
head =ListNode.createSinglyLinkedList(Arrays.asList(1,1,1));

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp