FastPrepAdd Two Numbers II
Problems/Add Two Numbers II

Add Two Numbers II

Bloomberg LP logoBloomberg LP● MediumNEW GRADFULLTIMEPHONE SCREENONSITE INTERVIEW

Updated Nov 2026

QuestionFunctionExamplesConstraints

Problem statement

Source note: Reported in a firsthand Bloomberg new grad onsite experience. Here the numbers are linked lists of digits in forward order.

Two nonnegative integers are stored in forward digit order in linked lists l1 and l2. Return their sum as a forward-order digit list.

Do not reverse or mutate the input lists.

Function

addTwoNumbersForward(l1: ListNode, l2: ListNode) → ListNode

Examples

Example 1

l1 = [7,2,4,3]l2 = [5,6,4]return = [7,8,0,7]
l1
7243
l2
564
return
7807

7243 + 564 = 7807.

Example 2

l1 = [9,9]l2 = [1]return = [1,0,0]
l1
99
l2
1
return
100

The final carry becomes the new head.

Constraints

  • Each list has between 1 and 100 nodes.
  • Every node value is a decimal digit.

More Bloomberg LP Onsite Interview questions

  • N-ary Index-Path Encoder and DecoderPHONE SCREEN · ONSITE INTERVIEW · Seen Nov 2026
  • Top K Frequent WordsONSITE INTERVIEW · Seen Nov 2026
  • Trapping Rain WaterPHONE SCREEN · ONSITE INTERVIEW · Seen Nov 2026
  • Word SearchOA · PHONE SCREEN · ONSITE INTERVIEW · Seen Nov 2026
  • Design Browser HistoryPHONE SCREEN · ONSITE INTERVIEW · Seen Oct 2026
  • Mutable Stock Price Top KPHONE SCREEN · ONSITE INTERVIEW · Seen Oct 2026
  • Decode StringPHONE SCREEN · ONSITE INTERVIEW · Seen Oct 2026
  • Minimum Replacements to Make Two Strings AnagramsPHONE SCREEN · ONSITE INTERVIEW · Seen Sep 2026
  • Currency Conversion RatePHONE SCREEN · ONSITE INTERVIEW · Seen Sep 2026
  • Running Stream AggregatesONSITE INTERVIEW · Seen Sep 2026

Similar questions at other companies

  • Subtract Forward-Order Linked-List NumbersMicrosoft · ONSITE INTERVIEWMicrosoft interview questions
  • Add Forward Linked-List Numbers Using RecursionPeopleStrong · PHONE SCREENPeopleStrong interview questions
  • Calculate a Token-List ExpressionCollege Vine · ONSITE INTERVIEW
  • Basic Calculator IISnap Inc. · PHONE SCREENSnap Inc. interview questions
  • Evaluate a Prefix ExpressionGoogle · ONSITE INTERVIEWGoogle interview questions
  • Turn a BST Into a Sorted Doubly Linked ListAdobe · PHONE SCREENAdobe interview questions
  • Min StackCapital One · PHONE SCREEN · ONSITE INTERVIEWCapital One interview questions
  • Add Two Numbers Stored in Reversed ListsExpedia · ONSITE INTERVIEWExpedia interview questions
  • Evaluate Reverse Polish NotationCoalition · PHONE SCREEN
  • Add Numbers Stored in Four-Digit ChunksZipRecruiter · ONSITE INTERVIEWZipRecruiter interview questions

Interview reports that mention this question

  • Bloomberg Experienced Design & More: 126 Questions (Part 2 of 2)

Bloomberg LP interview experiences

  • Bloomberg AI-Assisted Coding Round, All Levels: 14 Experiences
  • Bloomberg SWE Intern Interview Questions: 68 Questions
  • Bloomberg Interview Questions, Level Not Reported: 65 Questions
  • Bloomberg Experienced SWE Interviews: 167 Questions (Part 1 of 2)
  • Bloomberg New Grad Coding Questions: 121 Questions (Part 2 of 2)
All Bloomberg LP interview questionsSee Bloomberg LP hiring insights
Saved
/**
 * 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 addTwoNumbersForward(ListNode l1, ListNode l2) {
      // Write your code here.
    }
}
Checking account…