码迷,mamicode.com
首页 >  
搜索关键字:number of islands    ( 27069个结果
JAVASCRIPT-货币千分位,并且保留两位小数
/** * @param {*} money[输入的money] * @param {string} [货币符号,sysmbol='¥'] * @param {number} [小数点位数,places=2] * @returns undefined */ function dealMoney(mo ...
分类:编程语言   时间:2020-07-13 18:45:19    阅读次数:76
ccf 201903-2 二十四点 python
# #24点游戏,输入一串数字,在运算符满足的情况下,判断是否答案是否等于24.注意/满足整数输出 # import math # while 1: # n=int(input()) # number= list(map(int,input().split())) # """ # 10 # 9+3+ ...
分类:编程语言   时间:2020-07-13 18:41:41    阅读次数:70
JS :-)
进程与线程的区别进程是 CPU 资源分配的最小单位 进程可以包含多个线程;线程是 CPU 调度的最小单位;一个进程由多个线程组成;线程是一个进程中代码不同的执行路线;进程之间相互独立 但是同一进程下的线程可以共享进程内的资源 JS 数据类型JS 数据类型有 7 种 Number Boolean St ...
分类:Web程序   时间:2020-07-13 16:49:50    阅读次数:121
初探函数
1. 首先 2.自己写一个函数:也就是我们常说的DIY 不是所有的功能前辈们都帮我们写好的,当我们遇到一些没有直接可用的函数时,我们就需要自己设计函数了,以便实现想要的功能 首先看看定义函数的语法: 以y = 3x + 5 为例子,来定义一个一次函数 一行一行来看: 第1行:def的意思是定义(de ...
分类:其他好文   时间:2020-07-13 14:08:41    阅读次数:77
[PAT] A1038 Recover the Smallest Number
(贪心、字符串) ##题目大意 给一些字符串,求它们拼接起来构成最小数字的方式 ##思路 贪心算法。用cmp排序,直接判断a+b和b+a的大小即可。 必须保证两个字符串构成的数字是最小的才行,所以cmp函数写成return a + b < b + a;的形式,保证它排列按照能够组成的最小数字的形式排 ...
分类:其他好文   时间:2020-07-13 14:04:47    阅读次数:60
1512. Number of Good Pairs
Given an array of integers nums. A pair (i,j) is called good if nums[i] == nums[j] and i < j. Return the number of good pairs. Example 1: Input: nums ...
分类:其他好文   时间:2020-07-13 09:59:42    阅读次数:75
[LeetCode] 1512. Number of Good Pairs
Given an array of integers nums. A pair (i,j) is called good if nums[i] == nums[j] and i < j. Return the number of good pairs. Example 1: Input: nums ...
分类:其他好文   时间:2020-07-13 09:57:03    阅读次数:63
1513. Number of Substrings With Only 1s
Given a binary string s (a string consisting only of '0' and '1's). Return the number of substrings with all characters 1's. Since the answer may be t ...
分类:其他好文   时间:2020-07-13 09:56:37    阅读次数:68
[LeetCode] 1513. Number of Substrings With Only 1s
Given a binary string s (a string consisting only of '0' and '1's). Return the number of substrings with all characters 1's. Since the answer may be t ...
分类:其他好文   时间:2020-07-13 09:45:45    阅读次数:61
Paging through lots of data efficiently (and in an Ajax way) with ASP.NET 2.0
David Hayden blogged about a cool new ROW_NUMBER() function that SQL 2005 provides that got me excited and inspired to write a little code last night. ...
分类:Web程序   时间:2020-07-13 09:20:41    阅读次数:76
27069条   上一页 1 ... 63 64 65 66 67 ... 2707 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!