DIFF.BLOG
New
Following
Discover
Jobs
More
Suggest a blog
Upvotes plugin
Report bug
Contact
About
Sign up  
[Algorithm] Leetcode Add Two Numbers
1
·
Br
·
Nov. 25, 2021, midnight
Summary
Leetcode Two Sum https://leetcode.com/problems/add-two-numbers/ 1. 나의 풀이 /** * Definition for singly-linked list. * public class ListNode { * int val; * ListNode next; * ListNode() {} * ListNode(int val) { this.val = val; } * ListNode(int val, ListNode next) { this.val = val; this.next = next; } * } */ class Solution { public ListNode addTwoNumbers(ListNode l1, ListNode l2) { int sum = l1.val + l2.val; ListNode rtn = new ListNo...
Read full post on BryceYangS.github.io →
Submit
AUTHOR
RECENT POSTS FROM THE AUTHOR