最新 最热

LeetCode-2. 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...

2019-06-02
1

LintCode-56.两数之和

你需要实现的函数twoSum需要返回这两个数的下标, 并且第一个下标小于第二个下标。注意这里下标的范围是 0 到 n-1。

2019-05-31
0

LeetCode-1. Two Sum

Given an array of integers, return indices of the two numbers such that they add up to a specific target.

2019-05-29
0

LeetCode Algorithm

Given an array of integers, return indices of the two numbers such that they add up to a specific target.

2019-05-26
0

挑战程序竞赛系列(15):2.6快速幂运算

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u014688145/article/details/73549570

2019-05-26
1

679. 24 Game

观察可以发现状态数非常少,所以完全可以采用暴力构造,暴力计算,暴力搜索。4个数字有24中情况,运算符有4种,3个位置有64种情况,所以只需要枚举出64 * 24中算数表达式的值即可。...

2019-05-26
1

Sum of Square Numbers

1. Description2. Solutionclass Solution {public: bool judgeSquareSum(int c) { int roo

2019-05-25
0

leetcode-840-Magic Squares In Grid

A 3 x 3 magic square is a 3 x 3 grid filled with distinct numbers from 1 to 9 such that each row, column, and both diagonals all have the same sum.

2019-03-15
0

【每天一道编程系列-2018.1.29】(Ans)

【题目描述】 There are four numbers of 1, 2, 3, and 4. How many three digits numbers can they make up tha

2019-03-14
1

【每天一道编程系列-2018.1.30】(Ans)

Enter a line of characters. Please count the numbers of letters, spaces, numbers, and other characters.

2019-03-14
1