前言 接上文,复习整理大数据相关知识点,这章节从MapReduce开始... MapReduce介绍 MapReduce思想在生活中处处可见。或多或少都曾接触过这种思想。MapReduce的思想核心是“分而治之”,适用于大量复杂的任务处理场景(大规模数据处理场景)。 Map负责“分”,即把复杂的任务 ...
分类:
其他好文 时间:
2021-03-17 15:09:28
阅读次数:
0
list 去重扩展: public static IEnumerable<TSource> DistinctBy<TSource, TKey>(this IEnumerable<TSource> source, Func<TSource, TKey> keySelector) { HashSet<T ...
实现类: public class LinkedList { /* * 回文链表 * 检查链表是否回文 */ public static void main(String[] args) { Linknode node = new Linknode(1); node.next = new Linkn ...
分类:
其他好文 时间:
2021-03-17 15:02:32
阅读次数:
0
两个: new String()和abc new出来的对象都存放在堆中 String str = "abc"是创建了一个对象 String str1 = "abc"; String str2 = "ab" + "c"; str1==str2是true 因为String str2 = "ab" + " ...
分类:
其他好文 时间:
2021-03-17 14:59:15
阅读次数:
0
class Solution { public boolean wordBreak(String s, List<String> wordDict) { return isContain(s, wordDict); } Map<String,Boolean> map = new HashMap<>( ...
分类:
其他好文 时间:
2021-03-17 14:50:42
阅读次数:
0
class Solution { public int characterReplacement(String s, int k) { int left =0,right=0; int maxLength = -1; int result = 0; char[] charNums = new cha ...
分类:
其他好文 时间:
2021-03-17 14:50:06
阅读次数:
0
思路:判断某字符串是否为空,为空的标准是str==null或str.length()==0一.空字符串与null区别1、类型 null表示的是一个对象的值,而并不是一个字符串。例如声明一个对象的引用,String a = null ;""表示的是一个空字符串,也就是说它的长度为0。例如声明一个字符串 ...
分类:
编程语言 时间:
2021-03-17 14:48:23
阅读次数:
0
response.setHeader("Cache-Control","no-cache"); This is used to prevent the browser from caching your dynamic content generated by a JSP or Servlet. Y ...
分类:
系统相关 时间:
2021-03-17 14:45:16
阅读次数:
0
C++三种管理数据内存的方式:自动存储,静态存储,动态存储 自动存储:自动变量的持久性为自动的,在程序开始执行其所属的函数后者代码块时创建,执行后释放 静态存储:在程序整个运行期间都存在。(外部链接性,内部链接性,无链接性) 内存泄漏问题:被分配的内存再也不能使用,也无法回收(new和delete使 ...
分类:
编程语言 时间:
2021-03-17 14:37:09
阅读次数:
0
from xlutils.copy import copy import xlrd # 加载已存在的xls old_workbook = xlrd.open_workbook('guoshun.xlsx') # 将已存在的excel拷贝进新的excel new_workbook = copy(old ...
分类:
其他好文 时间:
2021-03-17 14:13:15
阅读次数:
0