自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(76)
  • 资源 (8)
  • 收藏
  • 关注

原创 服务计算——gRPC

文章目录服务计算——gRPC1. gRPC 简介2. 使用 protocol buffers3. 搭建 gPRC 简单客户端3.1 在 Go 语言编译环境下安装 gPRC3.1.1 Install3.1.2 Run3.2 定义服务3.3 生成 gPRC 代码3.4 写一个服务器3.5 写一个客户端3.6 调用 RPC3.7 运行服务计算——gRPC1. gRPC 简介在 gRPC 里客户端应...

2019-01-15 17:12:50 774

原创 服务计算——docker 应用容器化

文章目录服务计算——docker 应用容器化1. Docker 简介2. Docker 基本操作2.1 安装配置 Docker2.2 使用命令行搜索镜像2.3 下载镜像2.4 查看本地镜像列表2.5 删除本地镜像2.6 启动镜像成容器2.7 查看运行中的容器2.8 停止运行中的容器2.9 查看停止状态的容器3. 针对本次实验做的工作3.1 构建完整Docker file3.2 构建自定义镜像的基础...

2019-01-15 11:40:06 385

原创 leetcode 300. Longest Increasing Subsequence

leetcode 300. Longest Increasing Subsequence题目:Given an unsorted array of integers, find the length of longest increasing subsequence.Example:Input: [10,9,2,5,3,7,101,18]Output: 4 Explanation: T...

2018-12-27 11:59:47 165

原创 leetcode 334. Increasing Triplet Subsequence

leetcode 334. Increasing Triplet Subsequence题目:Given an unsorted array return whether an increasing subsequence of length 3 exists or not in the array.Formally the function should:Return true if ...

2018-12-26 11:01:37 188

原创 leetcode 343. Integer Break

leetcode 343. Integer Break题目:Given a positive integer n, break it into the sum of at least two positive integers and maximize the product of those integers. Return the maximum product you can get....

2018-12-25 10:52:53 178

原创 leetcode 837. New 21 Game

leetcode 837. New 21 Game题目:Alice plays the following game, loosely based on the card game “21”.Alice starts with 0 points, and draws numbers while she has less than K points. During each draw, sh...

2018-12-24 12:12:22 191

原创 leetcode 881. Boats to Save People

leetcode 881. Boats to Save People题目:The i-th person has weight people[i], and each boat can carry a maximum weight of limit.Each boat carries at most 2 people at the same time, provided the sum of...

2018-12-23 16:07:52 181

原创 leetcode 466. Count The Repetitions

leetcode 466. Count The Repetitions题目:Define S = [s,n] as the string S which consists of n connected strings s. For example, ["abc", 3] =“abcabcabc”.On the other hand, we define that string s1 can ...

2018-12-22 12:31:48 195

原创 leetcode 130.Surrounded Regions

leetcode 130.Surrounded Regions题目:Given a 2D board containing 'X' and 'O' (the letter O), capture all regions surrounded by 'X'.A region is captured by flipping all 'O's into 'X's in that surrounde...

2018-12-21 15:49:56 120

原创 说词——望江南·超然台作

说词——望江南·超然台作原文:望江南·超然台作苏轼春未老,风细柳斜斜。试上超然台上看,半壕春水一城花。烟雨暗千家。寒食后,酒醒却咨嗟。休对故人思故国,且将新火试新茶。诗酒趁年华。译文:春天还没有过去,微风细细,柳枝斜斜随之起舞。登上超然台远远眺望,护城河只半满的春水微微闪动,城内则是缤纷竞放的春花。更远处,家家瓦房均在雨影之中。寒食节过后,酒醒反而因思乡而叹息不已,只得...

2018-12-21 00:05:31 274

原创 leetcode 365. Water and Jug Problem

leetcode 365. Water and Jug Problem题目:You are given two jugs with capacities x and y litres. There is an infinite amount of water supply available. You need to determine whether it is possible to me...

2018-12-20 11:29:45 162

原创 leetcode 846. Hand of Straights

leetcode 846. Hand of Straights题目:Alice has a hand of cards, given as an array of integers.Now she wants to rearrange the cards into groups so that each group is size W, and consists of W consecuti...

2018-12-19 10:55:51 128

原创 leetcode 179. Largest Number

leetcode 179. Largest Number题目:Given a list of non negative integers, arrange them such that they form the largest number.Example 1:Input: [10,2]Output: "210"Example 2:Input: [3,30,34,5,9]Out...

2018-12-18 17:56:48 163

原创 leetcode 441. Arranging Coins

LeetCode 441. Arranging Coins题目:You have a total of n coins that you want to form in a staircase shape, where every k-th row must have exactly k coins.Given n, find the total number of full stairca...

2018-12-17 13:27:51 97

原创 leetcode 494. Target Sum

leetcode 494. Target Sum题目:You are given a list of non-negative integers, a1, a2, …, an, and a target, S. Now you have 2 symbols + and -. For each integer, you should choose one from + and - as its ...

2018-12-16 14:45:36 111

原创 leetcode 113. Path Sum II

leetcode 113. Path Sum II题目:Given a binary tree and a sum, find all root-to-leaf paths where each path’s sum equals the given sum.Note: A leaf is a node with no children.Example:Given the below b...

2018-12-15 19:54:53 100

原创 leetcode 105. Construct Binary Tree from Preorder and Inorder Traversal

leetcode 105. Construct Binary Tree from Preorder and Inorder Traversal题目:Given preorder and inorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not exist...

2018-12-14 15:53:26 120

原创 服务计算——web开发个人项目总结

项目总结姓名:王迎旭学号:16340226分工:后端主要负责:handler函数的完善 以及 在本地的测试主要工作这次项目自己完成了部分后端代码的补充工作,基于 天扬dalao 已经搭好的框架 和 泽浩dalao 已经给出的示例,自己继续再进行操作工作就变得简单很多了,比如:基于函数peopleIdHandler(),完成后面vehicle、starship、planet、flims...

2018-12-14 15:20:45 371

原创 leetcode 145.Binary Tree Postorder Traversal

leetcode 145. Binary Tree Postorder Traversal题目:Given a binary tree, return the postorder traversal of its nodes’ values.Example:Input: [1,null,2,3] 1 \ 2 / 3Output: [3,2,1]...

2018-12-13 11:24:34 100

原创 leetcode 606. Construct String from Binary Tree

leetcode 606. Construct String from Binary Tree题目:You need to construct a string consists of parenthesis and integers from a binary tree with the preorder traversing way.The null node needs to be r...

2018-12-12 11:00:43 198

原创 leetcode 98.Validate Binary Search Tree

leetcode 98.Validate Binary Search Tree题目:Given a binary tree, determine if it is a valid binary search tree (BST).Assume a BST is defined as follows:The left subtree of a node contains only nod...

2018-12-11 16:54:02 168

原创 leetcode 134. Gas Station

leetcode 134. Gas Station题目:There are N gas stations along a circular route, where the amount of gas at station i is gas[i].You have a car with an unlimited gas tank and it costs cost[i] of gas to ...

2018-12-10 15:09:29 140

原创 leetcode 55. Jump Game

leetcode 55. Jump Game题目:Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximum jump length at that ...

2018-12-09 11:26:30 102

原创 leetcode 444. Sequence Reconstruction

leetcode 444. Sequence ReconstructionCheck whether the original sequence org can be uniquely reconstructed from the sequences in seqs. The org sequence is a permutation of the integers from 1 to n, w...

2018-12-07 17:29:59 736

原创 leetcode 79.Word Search

leetcode 79.Word Search题目:Given a 2D board and a word, find if the word exists in the grid.The word can be constructed from letters of sequentially adjacent cell, where “adjacent” cells are those h...

2018-12-06 18:02:04 144

原创 说词——浣溪沙 苏轼

说词——浣溪沙 苏轼原文:浣溪沙 苏轼(元丰七年十二月二十四日,从泗州刘倩叔游南山)细雨斜风作晓寒,淡烟疏柳媚晴滩。入淮清洛渐漫漫。雪沫乳花浮午盏,蓼茸蒿笋试春盘。人间有味是清欢。译文:昨天出东城踏青游玩。墙上的红杳颜色很暗,茂密得好像要倾斜下夹。栏杆内侧的各种花草却还没有露出花苞,春天的脚步还没走到这里。美丽的小路上,女子经过,扬起尘土和落花,前面的村子,刚刚下过雪。这...

2018-12-06 01:18:41 251

原创 leetcode 109. Convert Sorted List to Binary Search Tree

leetcode 109. Convert Sorted List to Binary Search Tree题目:Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.For this problem, a height-bal...

2018-12-05 11:22:01 120

原创 leetcode 108. Convert Sorted Array to Binary Search Tree

leetcode 108. Convert Sorted Array to Binary Search Tree题目:Given an array where elements are sorted in ascending order, convert it to a height balanced BST.For this problem, a height-balanced binar...

2018-12-05 11:16:17 206

原创 leetcode 91.Decode Ways

leetcode 91.Decode Ways题目:A message containing letters from A-Z is being encoded to numbers using the following mapping:'A' -> 1'B' -> 2...'Z' -> 26Given a non-empty string containing...

2018-12-04 15:23:11 89

原创 leetcode 738.Monotone Increasing Digits

leetcode 738.Monotone Increasing Digits题目:Given a non-negative integer N, find the largest number that is less than or equal to N with monotone increasing digits.(Recall that an integer has monoton...

2018-12-03 10:51:48 214 1

原创 leetcode 690. Employee importance

leetcode 690. Employee importance题目:You are given a data structure of employee information, which includes the employee’s unique id, his importance valueand his direct subordinates’ id.For example,...

2018-12-02 12:09:31 120

原创 leetcode 76.Minimum Window Substring

leetcode 76.Minimum Window Substring题目:Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n).Example:Input: S = "ADOBECODEBANC...

2018-12-02 10:52:19 180 1

原创 经济学原理 3 - 6 章知识点

文章目录经济学原理第三章、相互依存性与贸易的好处第四章、供给与需求的市场力量第五章、弹性及其应用第六章、供给、需求与政府政策经济学原理第三章、相互依存性与贸易的好处如果每个国家在一种物品的生产上具有绝对优势,并专门生产这种物品,那两个国 家最终都将从贸易中得到利益当每个国家以它的最低成本专门生产某种物品时,两个国家都能从贸易中获益绝对优势度量生产一种物品所需投入的成本贸易的利益来源于...

2018-12-01 17:47:49 1481

原创 leetcode 93.Restore IP Addresses

leetcode 93.Restore IP Addresses题目:Given a string containing only digits, restore it by returning all possible valid IP address combinations.Example:Input: "25525511135"Output: ["255.255.11.135",...

2018-11-30 19:31:13 121

原创 leetcode 553.Optimal Division

leetcode 553.Optimal Division题目:Given a list of positive integers, the adjacent integers will perform the float division. For example, [2,3,4] -> 2 / 3 / 4.However, you can add any number of par...

2018-11-30 12:42:19 124

原创 Leetcode 688.Knight Probability in Chessboard

Leetcode 688.Knight Probability in Chessboard题目:On an NxN chessboard, a knight starts at the r-th row and c-th column and attempts to make exactly K moves. The rows and columns are 0 indexed, so the...

2018-11-29 11:24:24 233

原创 Leetcode 84.Largest Rectangle in Histogram

Leetcode 84.Largest Rectangle in Histogram题目:Given n non-negative integers representing the histogram’s bar height where the width of each bar is 1, find the area of largest rectangle in the histogr...

2018-11-28 13:04:25 117

原创 Leetcode 250.Count Univalue Subtrees

Leetcode 250.Count Univalue Subtrees题目:Given a binary tree, count the number of uni-value subtrees.A Uni-value subtree means all nodes of the subtree have the same value.For example:Given binary ...

2018-11-27 16:29:18 177

原创 Leetcode 135.Candy

Leetcode 135.Candy题目:There are N children standing in a line. Each child is assigned a rating value.You are giving candies to these children subjected to the following requirements:Each child mus...

2018-11-26 11:56:56 173

原创 Leetcode 600. Non-negative Integers without Consecutive Ones

Leetcode 600. Non-negative Integers without Consecutive Ones题目:Given a positive integer n, find the number of non-negative integers less than or equal to n, whose binary representations do NOT conta...

2018-11-25 17:14:46 226

cesium 测量距离

通过三个按键分别实现距离测量、面积测量以及清除,距离测量、面积测量时左键添加点,右键结束添加,会自动计算距离或者面积,清除之后清除点要素线要素以及显示的面积和距离。

2020-12-14

中山大学软件工程初级实训满分代码

软件工程初级实训满分上机代码以及初级实训个人心得总结

2018-12-03

中山大学软件工程中级实训满分代码

中山大学软件工程中级实训满分代码内含所有问题参考解答

2018-12-03

计算机网络第六英文版教材+中文版教材+课后习题答案+实验代码+wireshark使用教程

计算机网络第六英文版教材+中文版教材+课后习题答案+实验代码+wireshark使用教程

2018-10-08

pcspim安装包

Pcspim安装包..................................................

2018-04-06

Qt-spim软件安装包

Qtspim的安装包 ......................................................................................

2018-04-06

机场指挥飞机调度问题

P1-P6共有6个问题 P1 要求使用书本上提供的代码,于是考虑以 P1 的代码为基础,通过改动实现的细节,而不改动代码整体结构,来完成 P2 到 P6。经过对题目的讨论,我们认为 P2~P4 可以共用一种修改,P5 使用另一种修改,P6可以独立并融合于 P1~P5。下面将 P1 的结果称作源代码。 (首先应该考虑 P6)考虑到实际情况, 这个部分独立性强,可以先予以实现,方便在完成其他问题时应用于调试。 (P2~P4 可以一起考虑)考虑到实际情况,应该设计成机场拥有起飞降落的两条队列,但可以拥有多条跑道。不妨认为跑道间共用这两条队列。结果是将两条队列作为跑道类的共享成员。也考虑给跑道实例新增两个状态:能用来进行什么活动,闲置能否利用起来,方便完成问题。 (P5 可以作为另一个独立的分支考虑)考虑到实际情况,飞机实例应该 新增燃油剩余时间的状态。

2017-10-23

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除