Skip to main content

6 docs tagged with "Math"

View All Tags

Add Strings

Given two non-negative integers num1 and num2 represented as string, return the sum of num1 and num2.

Add Two Numbers

You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a linked list.

Binary Sum

Given two binary strings, return their sum (also a binary string).

Collapse Digits

Given a non-negative integer num, repeatedly add all its digits until the result has only one digit.