Description Polycarp has guessed three positive integers $a$, $b$ and $c$. He keeps these numbers in secret, but he writes down four numbers on a boar ...
分类:
其他好文 时间:
2019-06-28 23:06:38
阅读次数:
180
两数平方和 "633. Sum of Square Numbers (Easy)" 题目描述: 判断一个数是否为两个数的平方和。 代码: java public boolean judgeSquareSum(int c){ int i=0; int j=(int)Math.s ...
分类:
其他好文 时间:
2019-06-28 19:42:23
阅读次数:
77
Problem Description Alice are given an array A[1..N] with N numbers.Now Alice want to build an array B by a parameter K as following rules:Initially, ...
分类:
其他好文 时间:
2019-06-27 16:29:55
阅读次数:
100
题意:给你一个数n和t,问字母出现次数不超过t,第n小的16进制数是多少。 思路:容易联想到数位DP, 然而并不是。。。我们需要知道有多少位,在知道有多少位之后,用试填法找出答案。我们设dp[i][j]为考虑前i种字母,已经占了j个位置的方案数。那么dp[i][j] += dp[i - 1][j - ...
分类:
其他好文 时间:
2019-06-27 00:29:22
阅读次数:
103
Given a binary tree, you need to find the length of Longest Consecutive Path in Binary Tree. Especially, this path can be either increasing or decreas ...
分类:
其他好文 时间:
2019-06-26 22:05:41
阅读次数:
150
problem 628. Maximum Product of Three Numbers 参考 1. Leetcode_easy_628. Maximum Product of Three Numbers; 完 ...
分类:
其他好文 时间:
2019-06-24 12:20:21
阅读次数:
92
Given a *m* x *n* grid filled with non-negative numbers, find a path from top left to bottom right which *minimizes* the sum of all numbers along its ... ...
分类:
其他好文 时间:
2019-06-24 01:00:35
阅读次数:
99
Write a program that outputs the string representation of numbers from 1 to n. But for multiples of three it should output “Fizz” instead of the numbe ...
分类:
其他好文 时间:
2019-06-21 22:22:33
阅读次数:
119
There are two ways to correctly type checks number: ...
分类:
编程语言 时间:
2019-06-18 21:25:37
阅读次数:
123