- 博客(22)
- 资源 (1)
- 收藏
- 关注
翻译 What is a Schema
In this case, the schema diagram has been separated into four sections:Customer Data: Data related to the customers, such as their name, address, etcBusiness: Data required to run the business, such as staff, store locations, payment details, etcInvent.
2021-03-10 12:11:13 248
原创 RStudio及第三方库介绍
RstudioSkill Network LabsPopular R libraries for Data Sciencedplyr : Data Manipulationstringr: String Manipulationggplot: Data Visuailizationcaret: Machine LearningR Studio virtual environmentggplot-for data visualizations such as histograms, bar
2021-02-19 18:19:06 336
原创 Jupyter Notebook and JupyterLab
1.Execute the code1 + 1, by either clicking the Play button or by pressing Shift+Enter2.Create new cells:From the menu, click on Insert, then Insert Cell Above or Insert Cell Below.3.render the Markdown text, Play in the menu, or Shift+Enter.Markdown C
2021-02-19 10:17:18 189
原创 4 Analytics Concepts Every Manager Should Understand
Randomized controlled experimentsOne of the first steps in any analysis is data gathering. This often happens via a spectrum of experiments that companies do — from quick, informal surveys, to pilot studies, field experiments, and lab research. One of the
2020-12-10 11:11:01 101
原创 198.打家劫舍
对于第一间房屋而言,偷窃第一间房屋的钱最多,为S0=H0=1前两间房屋:S1= 2前三间房屋:偷或不投,1+3=4前4间:偷或不偷偷,3不偷,看1or2(即前两间最大)class Solution { public int rob(int[] nums) { if (nums == null || nums.length == 0) { return 0; } int length = nums.length; .
2020-12-01 20:21:41 107
原创 169.多数元素
示例1:3/2=1其中3出现2次,大于1,所以输出3.方法1:HashMapclass Solution { public int majorityElement(int[] nums) { //出现次数 nums.length/2 //计算每个元素的出现次数,用HashMap HashMap<Integer, Integer> map = new HashMap<Integer, Integer>(); .
2020-12-01 16:02:04 61
原创 How to Do a Process Chart Type of Question in IELTS Writing Task 1?
The process can be about manufacturing of a product in the factory or a biological process etc.Step 1: Read Question Properly and Write IntroductionThe given process chart illustrates the process, by which chocolate is produced in the factory, in ten ste
2020-12-01 14:50:15 194
原创 1207独一无二的出现次数
class Solution { public boolean uniqueOccurrences(int[] arr) { HashMap<Integer, Integer> map = new HashMap<>(); for(int i = 0; i < arr.length; i++) { map.put(arr[i],map.getOrDefault(arr[i],0)+1); //计算每个key出现次.
2020-11-24 11:20:11 54
原创 [LeetcodeHot100Likes]1. Two Sum
超时:class Solution { public int[] twoSum(int[] nums, int target) { int[] num = new int[2]; for (int i = 0; i < nums.length; i++) { for(int j = i + 1; j < nums.length; j++) { if (nums[j] == target - n..
2020-11-14 10:54:11 80
原创 深入浅出Docker镜像和容器概念
Docker 包含三个基本概念,分别是镜像(Image)、容器(Container)和仓库(Repository)。镜像镜像是 Docker 运行容器的前提,仓库是存放镜像的场所,可见镜像更是Docker的核心。Docker 镜像可以看作是一个特殊的文件系统,除了提供容器运行时所需的程序、库、资源、配置等文件外,还包含了一些为运行时准备的一些配置参数(如匿名卷、环境变量、用户等)。镜像不包含任何动态数据,其内容在构建之后也不会被改变。要想更深入的了解 Docker 镜像,镜像的原理也必不可少,而
2020-11-10 15:31:29 735 1
原创 【递归】Number of paths
求左上角到右下角的所有路径Approach:Recursion- Earlier we have seen “Print All Paths from Top left to bottom right in Two Dimensional Array“. Current problem is the subset of that problem. Here we will just count the number of paths, will not print them.From every ce
2020-10-22 15:25:02 227
原创 Flood fill algorithm
Flood fill算法是从一个区域中提取若干个连通的点与其他相邻区域区分开的经典算法。因为其思路类似洪水从一个区域扩散到所有能到达的区域而得名。在GNU Go和扫雷中,Flood Fill算法被用来计算需要被清除的区域。https://www.educative.io/edpresso/what-is-the-flood-fill-algorithmThe flood fill algorithm is used to determine the properties of the area arou
2020-10-21 09:30:36 198
原创 Check for BST
http://cslibrary.stanford.edu/110/BinaryTrees.html 简明教程方法一: 递归如果该二叉树的左子树不为空,则左子树上所有节点的值均小于它的根节点的值; 若它的右子树不空,则右子树上所有节点的值均大于它的根节点的值;它的左右子树也为二叉搜索树。设计一个递归函数 helper(root, lower, upper) 来递归判断,函数表示考虑以 root 为根的子树,判断子树中所有节点的值是否都在 (l,r)(l,r) 的范围内(注意是开区间)。如果 root
2020-10-19 16:02:42 106
原创 Left View of Binary Tree
// { Driver Code Startsimport java.util.LinkedList; import java.util.Queue; import java.io.*;import java.util.*;class Node{ int data; Node left; Node right; Node(int data){ this.data = data; left=null; right=n.
2020-10-14 15:39:57 174
原创 【贪心算法】Find the first circular tour that visits all petrol pumps
An efficient approach is to use a Queue to store the current tour. We first enqueue first petrol pump to the queue, we keep enqueueing petrol pumps till we either complete the tour, or the current amount of petrol becomes negative. If the amount becomes ne
2020-09-24 15:16:23 97
原创 针对string读取错误的方法(+anagram题解)
Given two strings a and b consisting of lowercase characters. The task is to check whether two given strings are anagram of each other or not. An anagram of a string is another string that contains same characters, only the order of characters can be diffe
2020-08-08 22:16:43 146
原创 【Array】Subarray with given sum
Given an unsorted array A of size N of non-negative integers, find a continuous sub-array which adds to a given number S.Input:The first line of input contains an integer T denoting the number of test cases. Then T test cases follow. Each test case consi
2020-06-29 23:02:04 139
原创 4.1 无向图
无向图的API常用的图处理代码图的几种表示方法必须为可能在应用中碰到的各种类型的图预留出足够的空间;Graph的实例方法实现一定要快。一、邻接矩阵V*V布尔矩阵,顶点v和顶点w有相连接的边时,定义v行w列的元素值为true,否则为false。二、边的数组使用一个Edge类,含有两个int实例变量。三、邻接表数组使用一个以顶点为索引的列表数组,其中每个元素都是和该顶点相邻的顶点列表。邻接表的数据结构非稠密图的标准表示称为邻接表的数据结构,它将每个顶点的所有相邻顶点都保存在该顶点
2020-06-29 22:49:23 240
原创 4 图
图更多的是采用链表存储,具体的存储方法有 3 种,分别是邻接表、邻接多重表和十字链表。一、邻接表存储法本节先讲解图的邻接表存储法。邻接表既适用于存储无向图,也适用于存储有向图。邻接点:在图中,如果两个点相互连通,即通过其中一个顶点,可直接找到另一个顶点,则称它们互为邻接点。邻接表存储图的实现方式是,给图中的各个顶点独自建立一个链表,用节点存储该顶点,用链表中其他节点存储各自的临界点。例如,存储图 1a) 所示的有向图,其对应的邻接表如图 1b) 所示:与邻接点V1相关的邻接点分别是V2和V3,
2020-06-27 21:22:41 598
原创 第20章 线性表、栈、队列和优先队列
20.2 集合import java.util.ArrayList;public class TestCollection { public static void main(String[] args) { // TODO Auto-generated method stub ArrayList<String> collection1 = new ArrayList<>(); collection1.add("Atlanta"); co
2020-05-24 15:13:15 86
原创 顺序表总结-用ArrayList和LinkList实现线性表去重及反转
线性表包括顺序表和链表。一、顺序表(顺序存储结构)1、数组数组是一种标准的线性表结构,其数据的存储顺序与存储的物理地址直接相关,具有随机存取速度快的特点。int[] arr = new int[10]; //定义长度为10的数组int length = arr.length; //数组长度通过访问数组对象的length属性获取arr[0] = 1; //数组元素赋值int a = ...
2020-02-18 14:41:24 567
Seven Steps to Mastering Business Analysis(期刊2008Fall).pdf
2020-10-22
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人