LeetCode数组&链表

LeetCode数组 26. Remove Duplicates from Sorted Array Remove Duplicates from Sorted Array 从小到大的有序数组,要求在$O(1)$空间内,去除重复元素 80. Remove Duplicates from Sorted Array II Remove Duplicates from Sorted Array II 从小到大的有序

Leetcode(78-144)

leetcode(78-144) 78-Subsets「回溯」 Subsets 子集问题,元素没有重复值。直接套回溯模板: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 classSolution { public: vector<vector<int>> subsets(vector<int>& nums) { vector<vector<int>> res; vector<int> tmp; //

Spark基础

spark初探 http://datastrophic.io/ 基本概念 Job: A piece of code which reads some input from HDFS or local, performs some computation on the data and writes some output data. Stages: Jobs are divided into stages. Stages are classified as a Map or reduce stages (Its easier to understand if you have worked on Hadoop and want to correlate). Stages are divided based on

Topliked100(四)

Topliked100(四) 3-Longest Substring Without Repeating Characters「滑动窗口」 Longest Substring Without Repeating Characters 给定一个字符串,找到最长不包含重复元素的子串长度。 1 2 3 4 5 6

Rabbitmq基础

Rabbitmq基础 基本概念 Exchange: 交换机,负责讲消息投递到对应的队列。包括四种基本类型。 fanout :广播 direct :把消息路由到那些BindingKey 和Rou