码迷,mamicode.com
首页 >  
搜索关键字:case when    ( 16729个结果)
[LeetCode]面试题64. 求1+2+…+n
面试题64. 求1+2+…+n 求 1+2+...+n ,要求不能使用乘除法、for、while、if、else、switch、case等关键字及条件判断语句(A?B:C)。 示例 1: 输入: n = 3 输出: 6 示例 2: 输入: n = 9 输出: 45 限制: 1 ? n <= 1000 ...
分类:其他好文   时间:2020-06-03 00:33:41    阅读次数:59
简易计算器
写一个计算器,要求实现加减乘除功能,并且循环接收新的数据,通过用户交互实现。 package com.steven.method; import java.util.Scanner; public class Calculator { public static void main(String[] ...
分类:其他好文   时间:2020-06-02 22:58:15    阅读次数:127
vue中实现页面锚点的跳转
页面做了一个简单的锚点跳转,如下图,我对左侧的四项加了页面定位跳转,也就是跳转至锚点 代码比较简单,和js的DOM操作原理是一样的 <div class="order-view" ref="orderview"> <div class="order-nav"> <ul> <li v-for="(it ...
分类:其他好文   时间:2020-06-02 16:05:56    阅读次数:55
6.2——面试题64. 求1+2+…+n
面试题64. 求1+2+…+n 求 1+2+...+n ,要求不能使用乘除法、for、while、if、else、switch、case等关键字及条件判断语句(A?B:C)。 1.解题思路 正整数累加,常规方法很简单。但是这里要求了不能使用乘除法、for,while(迭代)、if,else,swit ...
分类:其他好文   时间:2020-06-02 13:17:42    阅读次数:80
jenkins实现jar包自动发布和回滚(二)----jenkins实现项目发布、回滚
一、新建项目 二、配置项目 添加部署和回滚选择 三、添加源码管理 构建触发器 默认即可 四、编写选择代码 case $deploy_env in Deploy) echo "status: $deploy_env" path="${WORKSPACE}/dist" if [ -d $path ];t ...
分类:编程语言   时间:2020-06-02 10:59:21    阅读次数:78
SQL判断 一个字段为空时,取出另一个字段数据
table = db.exec_sql("""insert into dw.part_subject ( part_name, part_type, part_status, reg_date, source_id, source) select case when iccard_name is n ...
分类:数据库   时间:2020-06-01 21:00:53    阅读次数:525
Rename a Computer that Hosts a Stand-Alone Instance of SQL Server
When you change the name of the computer that is running SQL Server, the new name is recognized during SQL Server startup. You do not have to run Setu ...
分类:数据库   时间:2020-06-01 20:53:21    阅读次数:104
【leetcode】1422. Maximum Score After Splitting a String
题目如下: Given a string s of zeros and ones, return the maximum score after splitting the string into two non-empty substrings (i.e. left substring and r ...
分类:其他好文   时间:2020-06-01 18:02:06    阅读次数:65
传入时间不同格式日期
//根据传入日期返回展示日期 function getShowDate(date, value) { var date = new Date(date); var year = date.getFullYear(); var month = date.getMonth() + 1 > 9 ? dat ...
分类:其他好文   时间:2020-06-01 14:09:32    阅读次数:76
【LeetCode 力扣】7. Reverse Integer 整数反转 Java 解法
Hello 各位,这里是新治的第二篇博客,今天要解的这道题是LeetCode第七题,整数反转,先来读一下题: Given a 32-bit signed integer, reverse digits of an integer. Example 1: Input: 123 Output: 321 ...
分类:编程语言   时间:2020-06-01 12:03:41    阅读次数:72
共16729条   上一页 1 ... 61 62 63 64 65 ... 1673 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!