题目如下: Given two non-negative integers x and y, an integer is powerful if it is equal to x^i + y^j for some integers i >= 0 and j >= 0. Return a list o ...
分类:
其他好文 时间:
2019-01-07 17:33:22
阅读次数:
151
来源 | http://segmentfault.com 原文 | The Definitive Guide to Using Negative Margins 自从1998年CSS2作为推荐以来,表格的使用渐渐退去,成为历史。正因为此,从那以后CSS布局成为了优雅代码的代名词。 对于所有设计师使用 ...
分类:
Web程序 时间:
2019-01-07 01:41:31
阅读次数:
689
970. Powerful Integers Given two non-negative integers x and y, an integer is powerful if it is equal to x^i + y^j for some integers i >= 0 and j >= 0 ...
分类:
其他好文 时间:
2019-01-06 13:36:04
阅读次数:
151
要死要死,第一题竟然错误8次,心态崩了呀,自己没有考虑清楚,STL用的也不是很熟,一直犯错。 第二题也是在室友的帮助下完成的,心态崩了。 970. Powerful Integers 970. Powerful Integers Given two non-negative integers x a ...
分类:
其他好文 时间:
2019-01-06 13:33:00
阅读次数:
136
Given a non-negative integer N, your task is to compute the sum of all the digits of N, and output every digit of the sum in English. Input Specificat ...
分类:
其他好文 时间:
2019-01-06 11:53:55
阅读次数:
193
Given two non-negative integers num1 and num2 represented as string, return the sum of num1 and num2. Note: 代码的主要思路就是一位一位相加。具体代码实现过程如下。 但是关注了一下,评论区大神的 ...
分类:
其他好文 时间:
2019-01-03 12:02:04
阅读次数:
183
给定一个分布 $p(x)$,计算机中如何进行采样?本文大致介绍了计算机中如何对均匀分布进行采样,并对离散分布和连续分布采样进行了简单介绍。本文不涉及 MCMC 和 Gibbs 采样。 ...
分类:
其他好文 时间:
2019-01-02 23:30:31
阅读次数:
539
Question Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents y ...
分类:
其他好文 时间:
2019-01-02 10:45:53
阅读次数:
220
A sequence of numbers is called a wiggle sequence if the differences between successive numbers strictly alternate between positive and negative. The ...
分类:
其他好文 时间:
2019-01-01 17:17:58
阅读次数:
134
/** * Lock by Leetcode * 369. Plus One Linked List * https://www.lintcode.com/problem/plus-one-linked-list/description * * Given a non-negative intege ...
分类:
其他好文 时间:
2019-01-01 12:27:05
阅读次数:
240