Problem A. Collecting Coins Solution Observe that the easiest solution would be increase every one's number of coins to \(\max(A,B,C)\) Then all we ha ...
分类:
其他好文 时间:
2020-01-28 21:37:34
阅读次数:
106
技术选型: 网关:Nginx、Kong、Zuul 缓存:Redis、MemCached、OsCache、EhCache 搜索:ElasticSearch、Solr 熔断:Hystrix、resilience4j 负载均衡:DNS、F5、LVS、Nginx、OpenResty、HAproxy 注册中心 ...
分类:
其他好文 时间:
2020-01-28 00:04:36
阅读次数:
122
题目内容 Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would ha ...
分类:
其他好文 时间:
2020-01-27 19:08:41
阅读次数:
65
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> </head> <body> <script type="text/javascript" > //这里的对象数据是从今日头条源代码粘的 var obj={"ha ...
分类:
编程语言 时间:
2020-01-26 22:19:10
阅读次数:
89
下载Spark安装包 从官网下载 http://spark.apache.org/downloads.html 从微软的镜像站下载 http://mirrors.hust.edu.cn/apache/ 从清华的镜像站下载 https://mirrors.tuna.tsinghua.edu.cn/ap ...
分类:
其他好文 时间:
2020-01-26 18:59:28
阅读次数:
71
给定一个整数数组 nums 和一个目标值 target,请你在该数组中找出和为目标值的那 两个 整数,并返回他们的数组下标。 你可以假设每种输入只会对应一个答案。但是,你不能重复利用这个数组中同样的元素。 package com.leetcode.part1; import java.util.Ha ...
分类:
其他好文 时间:
2020-01-26 14:30:57
阅读次数:
71
1.一般涉及到链表(ListNode)的时候,往往我们会得到一个头节点 head,对头节点处理都是不动它,声明一个复制它的变量。 本题中 ha,hb = headA,headB 然后再双指针法进行计算。 2. 条件赋值 ha = ha.next if ha else headB ...
分类:
其他好文 时间:
2020-01-25 19:35:49
阅读次数:
81
job是串行执行的, 执行完上一个才执行下一个 eg:Wordcount案例 val lines = sc.textFile("本地URL or HDFS URL")//详解见代码1 val words = lines.flatMap(line => line.split(" "))//也会返回一个 ...
分类:
其他好文 时间:
2020-01-25 00:56:57
阅读次数:
119
原文链接:https://www.jianshu.com/p/e7e70ca7c7e5 高可用性即HA(High Availability)指的是通过尽量缩短因日常维护操作(计划)和突发的系统崩溃(非计划)所导致的停机时间,以提高系统和应用的可用性。 高可用集群的解决方案 计算机系统的高可用在不同的 ...
分类:
数据库 时间:
2020-01-23 18:23:13
阅读次数:
218
全局配置: <typeHandlers> <typeHandler handler="com.gong.mybatis.typeHandler.MyEnumEmpStatusTypeHandler" javaType="com.gong.mybatis.bean.EmpStatus"/> <!-- ...
分类:
其他好文 时间:
2020-01-23 16:45:34
阅读次数:
122