Skip to main content

9 docs tagged with "Easy"

View All Tags

Add Strings

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

Binary Sum

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

Binary Watch

A binary watch has 4 LEDs on the top which represent the hours (0-11), and the 6 LEDs on the bottom represent the minutes (0-59).

Buy and Sell Stocks 1

Say you have an array for which the i-th element is the price of a given stock on day i.

Buy and Sell Stocks 2

Say you have an array for which the i-th element is the price of a given stock on day i.

Climbing Stairs

You are climbing a stair case. It takes n steps to reach to the top.

Collapse Digits

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