Description A wqb-number, or B-number for short, is a non-negative integer whose decimal form contains the sub- string "13" and can be divided by 13. ...
分类:
其他好文 时间:
2020-07-15 23:20:22
阅读次数:
96
https://medium.com/terra-money/survey-of-automated-market-making-algorithms-951f91ce727a Automated market makers are routinely adopted in a number of ...
分类:
其他好文 时间:
2020-07-15 15:45:37
阅读次数:
60
var exp=undefinded; if(typeof(exp)=="undefined") { //变量是undefined的处理 } typeof 返回的是字符串,有六种可能:"number"、"string"、"boolean"、"object"、"function"、"undefined ...
分类:
编程语言 时间:
2020-07-15 15:38:30
阅读次数:
72
Angle Between Hands of a Clock (M) 题目 Given two numbers, hour and minutes. Return the smaller angle (in degrees) formed between the hour and the minut ...
分类:
其他好文 时间:
2020-07-15 10:47:17
阅读次数:
102
Given an array of integers and an integer k, you need to find the number of unique k-diff pairs in the array. Here a k-diff pair is defined as an inte ...
分类:
其他好文 时间:
2020-07-15 01:00:03
阅读次数:
73
260 Single Number III Given an array of numbers nums, in which exactly two elements appear only once and all the other elements appear exactly twice. ...
分类:
其他好文 时间:
2020-07-14 21:54:31
阅读次数:
104
转换函数、强制类型转换、利用js变量弱类型转换。 1. 转换函数: js提供了parseInt()和parseFloat()两个转换函数。前者把值转换成整数,后者把值转换成浮点数。只有对String类型调用这些方法,这两个函数才能正确运行;对其他类型返回的都是NaN(Not a Number)。 一 ...
分类:
Web程序 时间:
2020-07-14 11:45:19
阅读次数:
74
Number of Segments in a String (E) 题目 Count the number of segments in a string, where a segment is defined to be a contiguous sequence of non-space ch ...
分类:
其他好文 时间:
2020-07-14 09:24:30
阅读次数:
84
Given a list of dominoes, dominoes[i] = [a, b] is equivalent to dominoes[j] = [c, d] if and only if either (a==c and b==d), or (a==d and b==c) - that ...
分类:
其他好文 时间:
2020-07-14 00:23:31
阅读次数:
56
np.concatenate((a, b), axis = 0) 按照axis结合两个矩阵,结合后的矩阵在axis的方向上增长 比如两个2×2的矩阵按照axis=0结合,输出矩阵为4×2 np.array.reshape(m, n) np.tile(a, n) 将矩阵a为单位复制成n的模样 n可以是... ...
分类:
其他好文 时间:
2020-07-13 21:49:13
阅读次数:
116