码迷,mamicode.com
首页 >  
搜索关键字:do while    ( 38720个结果
Vue2.x Class & Style Bindings
Intoduciton: The way of using '' in html part confused me when I was learning Class&Style Bindings in Vue's official guide.(of course it's also becaus ...
分类:其他好文   时间:2021-02-15 12:40:17    阅读次数:0
剑指 Offer 57. 和为s的两个数字
题意 在一个有序数组里找两个和为s的数字 思路 1??有序,立刻联想到二分查找,我们可以依次遍历数组中的每个数字,然后二分查找另一个数字使得和可以为s。 2??双指针的写法 一开始分别放在最左和最右,对应为最小和最大的数字,记两个指针指向的元素的和为sum 如果sum > target,说明太大,则 ...
分类:其他好文   时间:2021-02-15 12:36:24    阅读次数:0
1069 The Black Hole of Numbers (20 分)
注意不满$4$位的话要补成$4$位。 string s; set<int> S; int main() { cin>>s; while(s.size()<4) s='0'+s; while(true) { sort(s.begin(),s.end(),greater<char>()); string ...
分类:其他好文   时间:2021-02-15 12:21:49    阅读次数:0
python3之流程控制
一、流程控制 Python支持两种基本流程控制结构 分支结构: 根据条件选择不同的代码块执行 循环结构: 根据循环条件重复代码块 if语句用于分支结构 for-in, while用于循环结构 break, continue用于循环控制 二 、分支结构 1 if条件判断 格式 基本格式 if cond ...
分类:编程语言   时间:2021-02-15 11:55:35    阅读次数:0
力扣228. 汇总区间
原题 1 class Solution: 2 def summaryRanges(self, nums: List[int]) -> List[str]: 3 left,right,lens,ans = 0,0,len(nums),[] 4 while left < lens: 5 right = ...
分类:其他好文   时间:2021-02-15 11:47:09    阅读次数:0
python 输出99乘法表
i = 1while i <= 9: i += 1 j = 1 while j <= i-1: print("{}*{}=".format(j,i-1),j*(i-1),sep='',end=' ') j += 1 print('') for i in range(1,10): for y in r ...
分类:编程语言   时间:2021-02-10 13:39:52    阅读次数:0
gem install rjb (1.6.4) error
An error occurred while installing rjb (1.6.4), and Bundler cannot continue. Make sure that `gem install rjb -v '1.6.4' --source 'https://gems.ruby-ch ...
分类:其他好文   时间:2021-02-10 13:00:46    阅读次数:0
docker部署prometheus + node_export + grafana(上)
一、查找镜像 1 docker search prometheus 2 docker search node-exporter 二、下载镜像 1 docker pull prom/prometheus 2 docker pull prom/node-exporter 三、验证下载的镜像是否存在 do ...
分类:其他好文   时间:2021-02-10 12:50:05    阅读次数:0
equals和hashCode详解
equals和hashCode详解 http://www.cnblogs.com/Qian123/p/5703507.html 阅读目录 equals()方法详解 hashcode() 方法详解 Hashset、Hashmap、Hashtable与hashcode()和equals()的密切关系 j ...
分类:其他好文   时间:2021-02-09 12:25:29    阅读次数:0
【Leetcode】剑指Offer 04二维数组的查找
题目描述: 在一个 n * m 的二维数组中,每一行都按照从左到右递增的顺序排序,每一列都按照从上到下递增的顺序排序。请完成一个高效的函数,输入这样的一个二维数组和一个整数,判断数组中是否含有该整数。 示例: 现有矩阵 matrix 如下: [ [1, 4, 7, 11, 15], [2, 5, 8 ...
分类:编程语言   时间:2021-02-09 11:47:39    阅读次数:0
38720条   上一页 1 ... 40 41 42 43 44 ... 3872 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!