码迷,mamicode.com
首页 >  
搜索关键字:else    ( 23991个结果
linux升级openssh到7.9
客户linux主机ssh存在高危漏洞,需要进行升级修复。 linux联网后,直接命令行: 此命令只是小版本的升级,比如将openssl从1.0.1e-43版本升级到1.0.1e-57版本,但好多时候我们需要升级的是大版本,而不是这种小的修复。 yum remove openssl命令执行时,可以看到 ...
分类:系统相关   时间:2019-04-09 16:38:48    阅读次数:1559
110.Balanced Binary Tree
``` class Solution { public: bool isBalanced(TreeNode *root) { if (checkDepth(root) == -1) return false; else return true; } int checkDepth(TreeNode *... ...
分类:其他好文   时间:2019-04-09 15:14:23    阅读次数:140
85.Maximal Rectangle
class Solution { public: / @param matrix a boolean 2D matrix @return an integer / int maximalRectangle(vector &matrix) { if (matrix.empty() || matrix[ ...
分类:其他好文   时间:2019-04-09 12:47:07    阅读次数:128
Lintcode155-Minimum Depth of Binary Tree-Easy
155. Minimum Depth of Binary Tree Given a binary tree, find its minimum depth. The minimum depth is the number of nodes along the shortest path from t ...
分类:其他好文   时间:2019-04-09 12:36:45    阅读次数:139
AC自动机模板2
题目链接:https://www.luogu.org/problemnew/show/P3796 ...
分类:其他好文   时间:2019-04-09 10:51:50    阅读次数:139
第二次实验报告
C程序设计实验报告 实验项目:___分支结构实验__ 姓名:___ 杨珺茹____实验地点:___514______实验时间____2019·4·3_______ 一、实验目的与要求 1.掌握c语言逻辑运算和关系运算的规则; 2、学会正确的使用关系表达式和逻辑表达式; 3、掌握if else语句的使 ...
分类:其他好文   时间:2019-04-09 00:26:47    阅读次数:179
HDU 3555 Bomb (数位dp)
Problem Description The counter-terrorists found a time bomb in the dust. But this time the terrorists improve on the time bomb. The number sequence o ...
分类:其他好文   时间:2019-04-09 00:12:22    阅读次数:124
入十个数并排序判断谁是素数
package jiangli; import java.util.Scanner; public class Paixu { public static void main(String[] args) { Scanner s = new Scanner(System.in); int temp; ...
分类:编程语言   时间:2019-04-08 23:02:41    阅读次数:258
Go if else
8.if-else语句if是条件语句。if语句的语法是ifcondition{}如果condition为真,则执行{和}之间的代码。不同于其他语言,例如C语言,Go语言里的{}是必要的,即使在{}之间只有一条语句。if语句还有可选的elseif和else部分。ifcondition{}elseifcondition{}else{}if-else语句之间可以有任意数量的elseif。条件判断顺序是从
分类:其他好文   时间:2019-04-08 22:56:41    阅读次数:180
33.Search in Rotated Sorted Array
``` class Solution { public: int search(vector& nums, int target) { int left = 0, right = nums.size() - 1; while (left = target) left = mid + 1; else ... ...
分类:其他好文   时间:2019-04-08 21:48:18    阅读次数:174
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!