码迷,mamicode.com
首页 >  
搜索关键字:number of islands    ( 27069个结果
C++语言基础--02_运算符
运算符 一 算术运算符 加减乘除求余数 + - * / % int a = 2, b = 4;? int c = a + b; cout << "c = " << c << endl; // 6? int d = a - b; cout << "d = " << d << endl; // -2? ...
分类:编程语言   时间:2020-06-25 11:53:47    阅读次数:53
字符串格式化(整理)
#!/usr/bin/env python3 # ­*­ coding: utf­8 ­*­"""目录:Python格式化字符串的4中方式一:%号(掌握)二:str.format(掌握)三:f-Strings(掌握)四:标准库模板五:总结四种方式的应用场景""""""Python格式化字符串的4种方 ...
分类:其他好文   时间:2020-06-25 11:48:42    阅读次数:64
0287. Find the Duplicate Number (M)
Find the Duplicate Number (M) 题目 Given an array nums containing n + 1 integers where each integer is between 1 and n (inclusive), prove that at least ...
分类:其他好文   时间:2020-06-25 09:20:33    阅读次数:64
防抖和节流
防抖 任务频繁触发的情况下,只有任务触发的间隔超过指定间隔的时候,任务才会执行。 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-wi ...
分类:其他好文   时间:2020-06-24 23:41:58    阅读次数:70
struct msghdr 结构体
struct msghdr 结构体 struct iovec { /* Scatter/gather arrayitems */ void *iov_base; /*Starting address */ size_t iov_len; /* Number of bytes to transfer* ...
分类:其他好文   时间:2020-06-24 23:25:42    阅读次数:75
JS 判断是否为数字 数字型特殊值
JS 数字型三个特殊值 Infinity ,代表无穷大,大于任何数值 -Infinity ,代表无穷小,小于任何数值 NaN ,Not a number,代表一个非数值 isNaN的使用: isNaN(x): x是数字型的时候(也就是它不是非数字) 它的返回值为 false x是非数字型的时候 它的 ...
分类:Web程序   时间:2020-06-24 20:04:45    阅读次数:84
Number Game
题意: 给出同一个数 \(n\) \((1\leq n \leq 10^9)\),两个人玩游戏,有两种操作: 1.除以一个大于 $1$ 的奇数因子 2.当 \(n>1\) 时,可以减 $1$ 无法操作的人输。 传送门 分析: 题目想复杂了,首先可以发现: \(n=1\),必输; \(n=2\),必胜 ...
分类:其他好文   时间:2020-06-24 19:32:55    阅读次数:79
1015 Reversible Primes
A reversible prime in any number system is a prime whose "reverse" in that number system is also a prime. For example in the decimal system 73 is a re ...
分类:其他好文   时间:2020-06-24 19:28:08    阅读次数:55
2020/6/24
数据类型 int(number 数字) str print("hello,world!","dasw",sep"") # 输出 define(定义) # shell(命令行) # arguments (参数) 数据结构 list(列表) tuple(元组) dict(字典) set(集合) 函数 类 ...
分类:其他好文   时间:2020-06-24 17:57:55    阅读次数:87
算法9:What is the sum of the digits of the number 21000
What is the sum of the digits of the number 21000 public static int sumDigits(int n) { int int_retVal = 0; int int_pow = (int) Math.pow(2, n); String ...
分类:编程语言   时间:2020-06-24 17:51:19    阅读次数:53
27069条   上一页 1 ... 83 84 85 86 87 ... 2707 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!