# Add Binary – LeetCode 67

## Problem

### Description

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

0%

Posted on
Edited on

Posted on
Edited on

Given a non-negative integer represented as a **non-empty** array of digits, plus one to the integer.

You may assume the integer do not contain any leading zero, except the number 0 itself.

The digits are stored such that the most significant digit is at the head of the list.

Posted on
Edited on

Given a string s consists of upper/lower-case alphabets and empty space characters ‘ ‘, return the length of last word in the string.

If the last word does not exist, return 0.

Note: A word is defined as a character sequence consists of non-space characters only.

Posted on
Edited on

Posted on
Edited on

The count-and-say sequence is the sequence of integers with the first five terms as following:

- 1
- 11
- 21
- 1211
- 111221

1 is read off as “one 1” or 11.

11 is read off as “two 1s” or 21.

21 is read off as “one 2, then one 1” or 1211.

Given an integer n, generate the nth term of the count-and-say sequence.

Note: Each term of the sequence of integers will be represented as a string.

Posted on
Edited on

Posted on
Edited on

Posted on
Edited on

Given an array and a value, remove all instances of that value in place and return the new length.

Do not allocate extra space for another array, you must do this in place with constant memory.

The order of elements can be changed. It doesn’t matter what you leave beyond the new length.

Posted on
Edited on

Posted on
Edited on