【题目描述】 Given two binary strings, return their sum (also a binary string). 给定两个二进制字符串，返回他们的和（用二进制表示）。 【题目链接】 www.lintcode.com/en/problem/ad...

2018/03/13 13:49
5
Lintcode407 Plus One solution 题解

【题目描述】 Given a non-negative number represented as an array of digits, plus one to the number. The digits are stored such that the most significant digit is at the head of ...

2018/03/16 11:27
71
Lintcode374 Spiral Matrix solution 题解

【题目描述】 Given a matrix of mxn elements (m rows,n columns), return all elements of the matrix in spiral order. 给定一个包含mxn个要素的矩阵，（m行,n列），按照螺旋顺序，返回该...

2018/03/06 16:38
44
Lintcode400 Maximum Gap solution 题解

【题目描述】 Given an unsorted array, find the maximum difference between the successive elements in its sorted form. Return 0 if the array contains less than 2 elements. Notice...

2018/03/08 17:07
41
Lintcode399 Nuts & Bolts Problem solution 题解

【题目描述】 Given a set of n nuts of different sizes and n bolts of different sizes. There is a one-one mapping between nuts and bolts. Comparison of a nut to another nut or a ...

2018/03/07 22:21
41