自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(31)
  • 资源 (1)
  • 收藏
  • 关注

原创 系统分析与设计作业(九)

lession 16使用 ECB 实现 make reservation 用例的详细设计(包含用例简介,顺序图,类图)make reservation 用例图 Boundary:与外部 Actor 交互的类。包括 UI、外部系统接口 Controller:处理外部事件,实现控制流的类。通常是一个子系统、一个用例一个类 Entity:领域对象或数据实体将逻辑设计类图...

2018-06-29 18:24:34 383 1

原创 CORS解决前端跨域问题

最近在项目中,与后台对接的时候,出现了一些问题 网页上出现了这样的报错: 查看了我发出去的报文,发现报文被浏览器拦截了,并没有发出。 查询了一下,发现这是浏览器同源策略引起的跨域问题,在此记录一下解决方案。什么是跨域?跨域是指一个域下的文档或脚本试图去请求另一个域下的资源,这里跨域是广义的。广义的跨域:1.) 资源跳转: A链接、重定向、表单提交2.) 资源嵌入:...

2018-06-26 23:05:02 8288

原创 系统分析与设计作业(八)

1.描述软件架构与框架之间的区别与联系软件架构: 架构和构架也就是通常所说的软件体系结构(software architecture。软件架构)是一系列相关的抽象模式,用于指导大型软件系统各个方面的设计。软件架构是一个系统的草图。软件架构描述的对象是直接构成系统的抽象组件。各个组件之间的连接则明确和相对细致地描述组件之间的通讯。在实现阶段,这些抽象组件被细化为实际的组件,比如具体某个类或者对...

2018-06-03 23:47:18 438

原创 系统分析与设计作业(七)

1.用例图 2.活动图 3.领域图 4.状态图 5.系统顺序图

2018-05-13 22:04:27 246

原创 系统分析与设计作业(六)

1)使用 UML State Model建模对象: 参考 Asg_RH 文档, 对 Reservation/Order 对象建模。 建模要求: 参考练习不能提供足够信息帮助你对订单对象建模,请参考现在 定旅馆 的旅游网站,尽可能分析围绕订单发生的各种情况,直到订单通过销售事件(柜台销售)结束订单。2)研究淘宝退货流程活动图,对退货业务对象状态建模...

2018-05-06 18:24:28 188

原创 系统分析与设计作业(五)

1、 领域建模a. 阅读 Asg_RH 文档,按用例构建领域模型。b. 数据库建模(E-R 模型)按 Task 3 要求,给出系统的 E-R 模型(数据逻辑模型) 导出 Mysql 物理数据库的脚本-- Created by Vertabelo (http://vertabelo.com)-- Last modification date: 2018-04...

2018-04-29 21:14:42 351

原创 系统分析与设计作业(四)

1、 用例建模a. 阅读 Asg_RH 文档,绘制用例图。 按 Task1 要求,请使用工具 UMLet,截图格式务必是 png 并控制尺寸 b. 选择你熟悉的定旅馆在线服务系统(或移动 APP),如绘制用例图。并满足以下要求: - 对比 Asg_RH 用例图,请用色彩标注出创新用例或子用例 - 尽可能识别外部系统,并用色彩标注新的外部系统和服务 c. 对比两个时代、不同地区产...

2018-04-22 15:13:42 314

原创 github团队项目管理入门

GitHub是一个非常适合团队协作开发的一个项目管理工具。 这里我介绍一下,在github上通过建立一个组织,团队开发一个项目的入门式流程。一、创建一个组织输入团队名称(或者项目名称)和邮箱后,直接按create organization 继续可以邀请队员,这一步可以直接跳过,以后我们可以在下图这里继续邀请 现在我们已经完成了组织的创建二、为组织创建一个rep...

2018-04-15 14:11:54 5725

原创 【c++】求1-n的最小公倍数

要求实现 输入一个n (1 <= n <= 10000) 求能整除1-n的最小正整数,即最小公倍数 由于数可能比较大,输出结果mod987654321 eg. 输入:3 输出:6 (6是能整除1,2,3的最小正整数)Hint: 我们知道两个数a,b的最小公倍数是a∗bgcd(a,b)a∗bgcd(a,b)\frac{a*b}{gcd(a,...

2018-04-09 22:14:12 4958

原创 系统分析与设计作业(二)

1、简答题1. 简述瀑布模型、增量模型、螺旋模型(含原型方法)的优缺点。 瀑布模型: ——优点: 降低软件开发的复杂程度,提高软件开发过程的透明性,提高软件开发过程的可管理性 推迟软件实现,强调在软件实现前必须进行分析和设计工作  以项目的阶段评审和文档控制为手段有效地对整个开发过程进行指导,保证了阶段之间的正确衔接,能够及时发现并纠正开发过程中存在的缺陷,使产品达到预...

2018-03-18 23:45:14 303

原创 系统分析与设计作业(一)

一、简单题1.软件工程的定义: 软件工程是(1)将系统化、规范化、可度量的方法应用于软件开发、运行和维护,即将工程化方法应用于软软件。(2)在(1)中所述方法的研究。2.解释 software crisis、COCOMO 模型software crisis:软件危机是指落后的软件生产方式无法满足迅速增长的计算机软件需求,从而导致软件开发与维护过程中出现一系列严重问题的现象。 六十年...

2018-03-11 23:35:48 531

原创 743. Network Delay Time

There are N network nodes, labelled 1 to N.Given times, a list of travel times as directed edges times[i] = (u, v, w), where u is the source node, v is the target node, and w is the time it takes fo

2018-01-22 00:07:42 206

原创 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 top-left square is (0, 0), and the bottom-right s

2018-01-12 00:54:03 194

原创 62 63 Unique Paths l, ll

A robot is located at the top-left corner of a m x n grid (marked ‘Start’ in the diagram below).The robot can only move either down or right at any point in time. The robot is trying to reach the bo

2018-01-11 20:54:26 185

原创 Best Time to Buy and Sell Stock l, II, lll

Say you have an array for which the ith element is the price of a given stock on day i.If you were only permitted to complete at most one transaction (ie, buy one and sell one share of the stock), d

2018-01-11 20:07:54 242

原创 证明HITTING SET 是NP完全

In the HITTING SET problem, we are given a family of sets {S1, S2, … , Sn} and a budget b, and we wish to find a set H of size show that HITTING SET is NP-complete.我们很容易就能把顶点覆盖规约到HITTING SET证明:v

2018-01-04 21:14:59 748

原创 241. Different Ways to Add Parentheses

Given a string of numbers and operators, return all possible results from computing all the different possible ways to group numbers and operators. The valid operators are +, - and *.Example 1In

2018-01-04 20:53:35 199

原创 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 monotone increasing digits if and only if each pai

2017-12-31 21:58:47 210

原创 752. Open the Lock

You have a lock in front of you with 4 circular wheels. Each wheel has 10 slots: ‘0’, ‘1’, ‘2’, ‘3’, ‘4’, ‘5’, ‘6’, ‘7’, ‘8’, ‘9’. The wheels can rotate freely and wrap around: for example we can turn

2017-12-26 21:51:27 325

原创 748. Shortest Completing Word

Find the minimum length word from a given dictionary words, which has all the letters from the string licensePlate. Such a word is said to complete the given string licensePlateHere, for letters we ign

2017-12-20 00:24:54 249

原创 516. Longest Palindromic Subsequence(最长回文子序列)

Given a string s, find the longest palindromic subsequence’s length in s. You may assume that the maximum length of s is 1000.Example 1:Input:"bbbab"Output:4One possible longest palindromic subseque

2017-12-02 17:02:20 301

原创 647. Palindromic Substrings

Given a string, your task is to count how many palindromic substrings in this string.The substrings with different start indexes or end indexes are counted as different substrings even they consist of

2017-12-01 21:43:00 224

原创 673. Number of Longest Increasing Subsequence

Given an unsorted array of integers, find the number of longest increasing subsequence.Example 1:Input: [1,3,5,4,7]Output: 2Explanation: The two longest increasing subsequence are [1, 3, 4, 7] and [1

2017-11-22 22:10:53 192

原创 718. Maximum Length of Repeated Subarray

Given two integer arrays A and B, return the maximum length of an subarray that appears in both arrays.Example 1:Input:A: [1,2,3,2,1]B: [3,2,1,4,7]Output: 3Explanation: The repeated subarray with

2017-11-16 20:09:40 217

原创 474. Ones and Zeroes

In the computer world, use restricted resource you have to generate maximum benefit is what we always want to pursue.For now, suppose you are a dominator of m 0s and n 1s respectively. On the other han

2017-11-06 16:02:07 260

原创 638. Shopping Offers

In LeetCode Store, there are some kinds of items to sell. Each item has a price.However, there are some special offers, and a special offer consists of one or more different kinds of items with a sale

2017-10-31 22:31:40 242

原创 Course Schedule III

There are n different online courses numbered from 1 to n. Each course has some duration(course length) t and closed on dth day. A course should be taken continuously for t days and must be finished be

2017-10-20 00:02:36 268

原创 Redundant Connection II

Redundant Connection IIIn this problem, a rooted tree is a directed graph such that, there is exactly one node (the root) for which all other nodes are descendants of this node, plus every node has exa

2017-10-15 21:55:52 890 1

原创 Redundant Connection

Redundant ConnectionIn this problem, a tree is an undirected graph that is connected and has no cycles.The given input is a graph that started as a tree with N nodes (with distinct values 1, 2, …, N),

2017-10-05 21:37:54 700

原创 Course Schedule (graph)

Course ScheduleThere are a total of n courses you have to take, labeled from 0 to n - 1.Some courses may have prerequisites, for example to take course 0 you have to first take course 1, which is expre

2017-09-25 19:26:11 313

原创 Kth Largest Element in an Array

Kth Largest Element in an ArrayFind the kth largest element in an unsorted array. Note that it is the kth largest element in the sorted order, not the kth distinct element.For example, Given [3,2,1,5,

2017-09-17 17:51:19 264

KthLargest

c++编程 分治方法实现获取数组第k大数 使用类似快速排序,执行一次快速排序后,每次只选择一部分继续执行快速排序,直到找到第K个大元素为止。

2018-07-06

空空如也

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

TA关注的人

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