Sub-string divisibilityThe number, 1406357289, is a 0 to 9 pandigital number because it is made up of each of the digits 0 to 9 in some order, but it ... ...
分类:
其他好文 时间:
2020-02-18 16:25:35
阅读次数:
71
Given a m * n matrix grid which is sorted in non-increasing order both row-wise and column-wise. Return the number of negative numbers in grid. Exampl ...
分类:
其他好文 时间:
2020-02-18 13:04:04
阅读次数:
75
Special Pythagorean triplet A Pythagorean triplet is a set of three natural numbers, $a using namespace std; int main() { for (int i = 1; i <= 1000/3; ...
分类:
其他好文 时间:
2020-02-17 20:11:32
阅读次数:
107
Largest product in a grid In the 20×20 grid below, four numbers along a diagonal line have been marked in red. 08 02 22 97 38 15 00 40 00 75 04 05 07 ...
分类:
其他好文 时间:
2020-02-17 19:50:33
阅读次数:
116
Largest palindrome product A palindromic number reads the same both ways. The largest palindrome made from the product of two 2 digit numbers is 9009 ...
分类:
其他好文 时间:
2020-02-17 18:15:39
阅读次数:
102
Colossal Fibonacci Numbers! 1. "链接" 2. 题意 输入两个非负整数a,b和正整数n(0 using namespace std; typedef unsigned long long ll; //此题会爆long long const int maxn = 1e6+ ...
分类:
其他好文 时间:
2020-02-16 14:30:00
阅读次数:
72
Given a set of candidate numbers (candidates) (without duplicates) and a target number (target), find all unique combinations in candidates where the ...
分类:
其他好文 时间:
2020-02-16 01:35:33
阅读次数:
58
题目 给出两个 非空 的链表用来表示两个非负的整数。其中,它们各自的位数是按照 逆序 的方式存储的,并且它们的每个节点只能存储 一位 数字。 如果,我们将这两个数相加起来,则会返回一个新的链表来表示它们的和。 您可以假设除了数字 0 之外,这两个数都不会以 0 开头。 示例: 输入:(2 4 3) ...
分类:
其他好文 时间:
2020-02-15 00:14:20
阅读次数:
102
Given two numbers, hour and minutes. Return the smaller angle (in sexagesimal units) formed between the hour and the minute hand. Example 1: Input: ho ...
分类:
其他好文 时间:
2020-02-13 09:30:42
阅读次数:
57
知识点:c++中将string转换为int 于double的函数(原来还有这种好东西) 转化为int,有两种方式: string s = "123"; int c = atoi(s.c_str()); 或者int c = stoi(s);将string转化为double,也是两种方式。string ...
分类:
其他好文 时间:
2020-02-13 00:21:28
阅读次数:
137