面试题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
页面做了一个简单的锚点跳转,如下图,我对左侧的四项加了页面定位跳转,也就是跳转至锚点 代码比较简单,和js的DOM操作原理是一样的 <div class="order-view" ref="orderview"> <div class="order-nav"> <ul> <li v-for="(it ...
分类:
其他好文 时间:
2020-06-02 16:05:56
阅读次数:
55
面试题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
一、新建项目 二、配置项目 添加部署和回滚选择 三、添加源码管理 构建触发器 默认即可 四、编写选择代码 case $deploy_env in Deploy) echo "status: $deploy_env" path="${WORKSPACE}/dist" if [ -d $path ];t ...
分类:
编程语言 时间:
2020-06-02 10:59:21
阅读次数:
78
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
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
题目如下: 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
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