码迷,mamicode.com
首页 >  
搜索关键字:a number whose    ( 27532个结果
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
0190. Reverse Bits (E)
Reverse Bits (E) 题目 Reverse bits of a given 32 bits unsigned integer. Example 1: Input: 00000010100101000001111010011100 Output: 001110010111100000101 ...
分类:其他好文   时间:2020-07-13 09:14:55    阅读次数:56
Weekly Contest 197
周赛地址(英):weekly contest 197 周赛地址(中):第 197 场周赛 仓库地址:week-Leetcode 1512. Number of Good Pairs Given an array of integers nums. A pair (i,j) is called goo ...
分类:其他好文   时间:2020-07-12 22:23:56    阅读次数:56
27532条   上一页 1 ... 64 65 66 67 68 ... 2754 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!