Consider two natural numbers A and B. Let S be the sum of all natural divisors of A^B. Determine S modulo 9901 (the rest of the division of S by 9901) ...
分类:
其他好文 时间:
2019-09-22 14:31:20
阅读次数:
121
Dominoes Game 描述 Recently, my lovely daughter YuYu indulges in playing a game called dominoes. When the game starts, I first place some blocks with va ...
分类:
其他好文 时间:
2019-09-21 17:32:24
阅读次数:
91
题目描述: 中文: 给定一个整数数组 nums 和一个目标值 target,请你在该数组中找出和为目标值的那 两个 整数,并返回他们的数组下标。 你可以假设每种输入只会对应一个答案。但是,你不能重复利用这个数组中同样的元素。 英文: Given an array of integers, retur ...
分类:
编程语言 时间:
2019-09-19 21:13:04
阅读次数:
111
简介 利用Mac包管理工具brew安装pyenv,pyenv用来管理所有python版本。如果没有安装brew,先安装一下吧。 安装pyevn 查看所有的python版本(pyenv管理的所有版本) * 表示当前正在使用的版本,system表示用的是系统python版本 查看可安装python版本 ...
分类:
编程语言 时间:
2019-09-19 18:04:06
阅读次数:
127
Additive number is a string whose digits can form additive sequence. A valid additive sequence should contain at least three numbers. Except for the f ...
分类:
其他好文 时间:
2019-09-19 14:22:15
阅读次数:
86
有一个数字字符的列表: 1 numbers = ['1', '5', '10', '8'] 1 numbers = ['1', '5', '10', '8'] 1 numbers = ['1', '5', '10', '8'] 1 numbers = ['1', '5', '10', '8'] nu ...
分类:
编程语言 时间:
2019-09-18 17:38:05
阅读次数:
249
Given two integers n and k, return all possible combinations of k numbers out of 1 ... n. Example: backtracking的变种 ...
分类:
其他好文 时间:
2019-09-18 09:15:52
阅读次数:
108
1. "82. Remove Duplicates from Sorted List II (Medium)" Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinc ...
分类:
其他好文 时间:
2019-09-17 11:04:42
阅读次数:
87
Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have ex ...
分类:
其他好文 时间:
2019-09-15 11:37:10
阅读次数:
103
1. Two Sum Easy Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each inp ...
分类:
其他好文 时间:
2019-09-13 22:25:49
阅读次数:
95