E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
whil
java终极菜鸟总结3
while,for,do..
whil
简单点_c1e3
·
2020-06-26 09:52
最高分是多少(2016)
includeusingnamespacestd;voidmain(){intN,M,A,B;intscore[30000];charmode;while(cin>>N>>M){intindex=1;
whil
sherry_0720
·
2020-06-26 09:58
huawei
这30条代码,520拿去“表白”再合适不过了!
闲话少说,让我们来欣赏这些代码吧~第一条:直到生命的尽头,每天爱你多一点
whil
python引导者
·
2020-06-26 04:09
python
LeetCode(剑指offer-Array)-面试题53 - II. 0~n-1中缺失的数字
]输出:2示例2:输入:[0,1,2,3,4,5,6,7,9]输出:8限制:1&nums){if(nums.empty()){return0;}//二分法inti=0,j=nums.size()-1;
whil
修行者_Yang
·
2020-06-25 14:04
LeetCode
Java NIO中断开连接后不断有OP_READ事件的问题
){//断开连接后这里没有延时的效果System.out.println("==");continue;}Iteratoritr=selector.selectedKeys().iterator();
whil
南宫知晓
·
2020-06-25 09:26
Remind
学习笔记:中国大学MOOC《计算机程序设计C++》第3周单元测试
a)x–;elseif(b);if©x=3;elsex=4;得分/总分A.42.00/2.00B.35C.3D.342单选(2分)C++语言中
whil
野人时代
·
2020-06-25 09:36
C++学习笔记
【leetcode】Python实现-206.反转链表
self,head):""":typehead:ListNode:rtype:ListNode"""ifheadisNoneorhead.nextisNone:returnheadp=headd={}i=0
whil
神不烦
·
2020-06-25 08:33
leetcode
Python
python 计算1到100以内能被3或者7整除,但不能同时被3和7整除的数的个数,运行结果为39
、通过if来设置符合的条件,符合条件count计数加14、输出符合条件的总个数count任务提示:同时被3和7整除,即为21的倍数;除以21不等于0即不能同时被3和7整除"""num=1count=0
whil
总是幸福的老豌豆
·
2020-06-25 06:25
Python
leetcode盛最多水的容器
classSolution(object):defmaxArea(self,height):""":typeheight:List[int]:rtype:int"""i=0j=len(height)-1water=0
whil
qinglv1
·
2020-06-24 22:54
面试
刷题(剑指offer)
jzxx1809水仙花数
10usingnamespacestd;intn,k,ans=0;inta[25],c[25],d[25];boolb[25];intisshui(intn){inttemp=n;intt[20];intcn=0;
whil
lyz060510
·
2020-06-24 11:37
c++
Java读取文件内容并转换为字符串
{BufferedReaderin=newBufferedReader(newFileReader(myFile));Stringstr;
whil
马如林
·
2020-06-24 08:14
JavaEE等
写在情人节的小程序
includeusingnamespacestd;boolenough=false;intDarlingSayOK(constchar*szmsg){stringstrmsg;do{getline(cin,strmsg);}
whil
ken_scott
·
2020-06-24 00:08
c++
生活
LEETCODE-刷题个人笔记 Python(1-400)-TAG标签版本
然后n=n-1defremoveElement(self,nums,val):""":typenums:List[int]:typeval:int:rtype:int"""i=0n=len(nums)
whil
xuejame
·
2020-06-23 20:19
Leetcode
leetcode
标签
刷题
python
L1-028 判断素数(10 分)
sqrt(n);if(n==1)return0;elsefor(i=2;i
whil
码奴生来就只知道前进
·
2020-06-23 17:51
水题
PAT和GPLT
js的算法
str[i];returntmp}思路二:转化成array操作functionreverseString(str){vararr=str.split("");vari=0,j=arr.length-1;
whil
LaBaby_
·
2020-06-23 14:59
2019-03-16 lower_bound&upper_bound
,R=n-1,mid;while(L=x)R=mid-1;elseL=mid+1;}returnL;}intupper_bound(int*A,intn,intx){intL=0,R=n-1,mid;
whil
桐桑入梦
·
2020-06-23 09:57
阶乘中0的个数-poj 1401
//poj-1401-factorial-ac#includeusingnamespacestd;intmain(){intn;cin>>n;while(n--){intm,sum=0;cin>>m;
whil
yichudu
·
2020-06-22 23:52
数论
Java定时调用
publicstaticvoidmain(String[]args){finallongtimeInterval=1000;Runnablerunnable=newRunnable(){publicvoidrun(){
whil
乘风晓栈
·
2020-06-22 21:49
线程与定时
nyoj105 九的余数
include3#defineN100001045usingnamespacestd;67chara[N];89intmain()10{11inttest,i,sum,len;12cin>>test;13
whil
angtongyou1893
·
2020-06-22 14:14
Python3将两个有序数组合并为一个有序数组
(好)第二种思路的排序算法与测试代码如下:defmerge_sort(a,b):ret=[]
whil
aab438346
·
2020-06-22 11:26
Switch多分支结构【走进JAVA-1.8】
*;//导入util包;publicclassTest{publicstaticvoidmain(String[]args){Scanners=newScanner(System.in);
whil
SanQiangXiong
·
2020-06-22 11:35
JAVA
使用GDB进行多线程调试的基本常用命令
while(1){printf("Iamthread1,ID:%d\n",pthread_self());sleep(1);}}void*pthread_run2(void*arg){(void)arg;
whil
WJSZMD
·
2020-06-22 07:13
Linux
c++
用c++实现 c++单链表的实现(采用模板类)
voidmain(){Listmylist;intselect=1;intItem;while(select){cout";cin>>select;switch(select){case1:cout";
whil
闫少波
·
2020-06-22 04:31
c++
20160526
varsort=function(array){for(leti=0,j=array.length-1;i
whil
嘘嘘乐
·
2020-06-21 16:59
【Java面试题】List如何一边遍历,一边删除?
String[]args){ListplatformList=newArrayListplatformList=newArrayListiterator=platformList.iterator();
whil
申城异乡人
·
2020-06-20 21:11
Java
面试题
与JAVA集合相遇
publicstaticvoidmain(String[]args){Collectioncoll=newArrayListcoll=newArrayListit=coll.iterator();/*
whil
YUNNEN
·
2020-06-11 11:00
2018-08-28-作业
print('学生管理系统')print('===========================')student_system=[{'name':'stu1','age':18,'电话':136742}]
whil
fanzl
·
2020-04-11 07:56
邻接表|SPFA
maxn];intinque[maxn];SPFA不完整实现boolSPFA(ints,inttotalnode){queueq;dis[s]=0;q.push(s);inque[s]=1;//统计入队次数
whil
绍重先
·
2020-04-09 12:49
C# Task Cancel,CancellationTokenSource.IsCancellationRequested
(){InitializeComponent();}privatevoidStartClick(objectsender,EventArgse){TasktestTask=Task.Run(()=>{
whil
Fred1987
·
2020-04-09 10:00
C# Task Cancel,CancellationTokenSource.IsCancellationRequested
(){InitializeComponent();}privatevoidStartClick(objectsender,EventArgse){TasktestTask=Task.Run(()=>{
whil
Fred1987
·
2020-04-09 10:00
POJ 1611
=i)i=pre[i];
whil
vanadia
·
2020-04-05 17:31
leetcode1404
int(s[i])*(2**p)8p+=19returnbasenum1011defnumSteps(self,s:str)->int:12x=self.convertInt(s)13count=014
whil
Sempron2800+
·
2020-04-05 12:00
算法和流程控制
javascript的基本语言和行为,其中有四种循环类型,第一种是标准for循环,与其他类C语言的语法相同:for(vari=0;i<10;i++){//循环主体}第二种是循环类型是while循环:vari=0;
whil
梦夜空中最亮的星
·
2020-04-02 13:08
网易校招(前端编程)
(String[]args){Scanners=newScanner(System.in);intx=s.nextInt();StringBufferbuffer=newStringBuffer();
whil
大侠一点红
·
2020-04-01 01:20
无题
def_not_divisible(n):returnlambdax:x%n>0defprimes():yield2it=_odd_iter()
whil
52_St
·
2020-03-31 20:35
剑指Offer-60 层次遍历
TreeNodepRoot){ArrayList>lists=newArrayListqueue=newLinkedListlist=newArrayList<>();TreeNodenode=queue.poll();
whil
北国雪WRG
·
2020-03-24 14:20
python学习笔记-循环(while for)<6>
:冒号是语法的一部分1.2while语句的基本组成:1.break结束
whil
accept88
·
2020-03-22 01:09
13、Shell读取文件的3种方法
catfilename|
whil
寅务
·
2020-03-21 08:16
【Java面试题】List如何一边遍历,一边删除?
String[]args){ListplatformList=newArrayListplatformList=newArrayListiterator=platformList.iterator();
whil
申城异乡人
·
2020-03-20 12:00
对文件的操作:打开读写txt文件@Pascal学习日记
integer;Name:String[20];MaxName:String;Sex:0..1;BeginMax:=0;Assign(F,'E:\Exam\Salary.txt');Reset(F);
Whil
masakakaikai
·
2020-03-19 21:24
22-Python之 while循环
如果没有这一个语句,
whil
mingminy
·
2020-03-17 02:30
kotlin学习随笔之foldRight
isEmpty()){valiterator=listIterator(size)
whil
全汪汪
·
2020-03-08 14:34
【Leetcode】1290. Convert Binary Number in a Linked List to Integer
代码如下:publicclassSolution{publicintgetDecimalValue(ListNodehead){intres=0;
whil
记录算法
·
2020-02-28 03:52
#
数组
链表与模拟
链表
leetcode
java
算法
简记一波GC优化的实验结论
2.返回IEnumerator、IEnumerable的函数调用:32B每次调用都会分配内存,与使用方式无关[foreach,
whil
_Walker__
·
2020-02-24 03:51
常见面试算法题1:单链表逆置
{if(head==NULL||head->next==NULL){returnhead;}Node*p=head->next;p->next=head;head->next=NULL;head=p;
whil
dwade06
·
2020-02-21 22:10
XJTLU_CSE304(17/18) Multi-agent System
whil
GNOHC
·
2020-02-20 03:11
three sum
List>res=newArrayList>();if(A==null||A.length0&&A[i]==A[i-1]){continue;}intstart=i+1;intend=A.length-1;
whil
yanyuchen
·
2020-02-17 13:17
Python3.x 练习 --- demo
bin/envpython#-*-coding:UTF-8-*-#Author:jinfengimportrandomx=[aforainrange(1,10)]set1=[]set2=[]set3=[]
whil
thinker99
·
2020-02-16 18:30
循环结构
可以组成各种不同形式的循环结构while语句do-while语句for语句//while是对给定的条件进行判断,如果条件满足,就执行while后面大括号中的内容//执行完毕之后会再次进行条件判断//如果满足会再次执行
whil
Coder007
·
2020-02-15 21:18
Work Smart Is the Key to Success
Ihaveacknowledgedandfollowedthistruththroughoutmystudentcareer.Itseemsthatithasalwaysworkedwell.However,
whil
LuckyEva
·
2020-02-15 09:01
上一页
6
7
8
9
10
11
12
13
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他