## Add Binary

QUESTION Given two binary strings, return their sum (also a binary string). This question is provided by LeetCode.

QUESTION Given two binary strings, return their sum (also a binary string). This question is provided by LeetCode.

QUESTION Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target? Find all unique quadruplets in the array which gives the sum of target. Note: Elements in a quadruplet (a,b,c,d) must be in non-descending order. (ie, a Read the full article…

QUESTION Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers. You may assume that each input would have exactly one solution. This question is provided by leetcode.

During this summer, I practice one or two programming or algorithm question per day. And, I will record them in this blog. 3 Sum is the first question I tried. QUESTION Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Read the full article…