自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 系统分析与设计-homework-8

1、使用 ECB 实现 make reservation 用例的详细设计(包含用例简介,顺序图,类图)2、将逻辑设计类图映射到实际项目框架的包图。用树形结构表达实现的包和类...

2018-06-30 17:23:01 312

原创 微信小程序页面之间的数据传递

1 全局变量之中传递参数数据微信小程序官方提供app.js全局变量定义文件,里面可以定义需要在全局需要使用的变量与及变量值,例如用户登录之后,需要在所有页面中使用用户登录状态等。微信小程序初始化时,首先会加载app.json全局样式配置文件和全局变量文件。在app.js定义全局变量后,可以在各页面间直接加载全局变量,小程序提供了getApp()方法,可以直接获取到App({…})这个全局...

2018-06-30 17:07:32 3455

原创 系统分析与设计-homework-7

以你的项目为案例 绘制三层架构模型图 细致到分区

2018-06-03 23:22:28 344

原创 系统分析与设计-homework-6

QAQ

2018-05-13 22:55:34 229

原创 系统分析与设计-homework-5

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

2018-05-06 22:59:27 209

原创 系统分析与设计-homework-4

1 领域建模a. 阅读Asg_RH文档,按用例构建领域模型。按 Task2 要求,请使用工具 UMLet,截图格式务必是png并控制尺寸。说明:请不要受 PCMEF 层次结构影响。你需要识别实体(E)和中介实体(M,也称状态实体)。 在单页面应用(如 vue)中,E一般与数据库构建有关,M一般与store模式有关。 在java web应用中,E一般与数据库构建有关,...

2018-04-29 22:00:50 181

原创 系统分析与设计-homework-3

1 用例建模a. 阅读Asg_RH文档,绘制用例图。按Task1要求,请使用工具UMLet,截图格式务必是png并控制尺寸。b. 选择你熟悉的定旅馆在线服务系统(或移动APP),如绘制用例图。并满足以下要求:对比 Asg_RH 用例图,请用色彩标注出创新用例或子用例尽可能识别外部系统,并用色彩标注新的外部系统和服务答:我选择了携程网酒店预订的流程界面为例。 ...

2018-04-22 20:12:36 308

原创 微信小程序的载体与语言

我的团队任务:确定程序的载体与语言开发微信小程序的载体利用微信web开发者工具,使用其中的小程序调试,开发者可以完成小程序的 API 和页面的开发调试、代码查看和编辑、小程序预览和发布等功能。微信小程序所用的语言 .json 后缀的 JSON 配置文件 .wxml 后缀的 WXML 模板文件 .wxss 后缀的 WXSS 样式文件 .js 后缀...

2018-03-29 20:09:34 1239

原创 系统分析与设计-homework-2

1、简答题简述瀑布模型、增量模型、螺旋模型(含原型方法)的优缺点。 瀑布模型 优点: 1)为项目提供了按阶段划分的检查点。 2)当前一阶段完成后,您只需要去关注后续阶段。 3)可在迭代模型中应用瀑布模型。 缺点: 1)在项目各个阶段之间极少有反馈。 2)只有在项目生命周期的后期才能看到结果。 3)通过过多的...

2018-03-22 20:47:34 153

原创 系统分析与设计-homework-1

1、软件工程部分要点Software Engineering DefinitionSoftware engineering is “(1) the application of a systematic, disciplined, quantifiable approach to the development, operation, and maintenance of software, th...

2018-03-15 20:32:18 274

原创 LeetCode 55 45 63 74 240 230

这是老师在期末时候标注的LeetCode重点题目,做了下,直接附上答案。55. Jump GameGiven an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represent

2018-01-13 15:27:06 178

原创 《算法概论》ex8.8

8.8. In the EXACT 4 SAT problem, the input is a set of clauses, each of which is a disjunction of exactly four literals, and such that each variable occurs at most once in each clause. The goal is to

2017-12-31 23:51:08 222

原创 LeetCode 650. 2 Keys Keyboard

动态规划解答 : LeetCode 650. 2 Keys KeyboardInitially on a notepad only one character 'A' is present. You can perform two operations on this notepad for each step:Copy All: You can copy all the ch

2017-12-31 00:55:41 161

原创 LeetCode 647. Palindromic Substrings

好久没接触过的涉及回文字符串的题目:LeetCode 647. Palindromic SubstringsGiven a string, your task is to count how many palindromic substrings in this string.The substrings with different start indexes or end inde

2017-12-28 00:46:36 157

原创 LeetCode 303. Range Sum Query - Immutable

较简单的动态规划题目:LeetCode 303. Range Sum Query - ImmutableGiven an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive.Example:Given nums = [-2, 0, 3, -5,

2017-12-27 23:18:06 159

原创 LeetCode 198. House Robber

一道简单的动态规划典例题:LeetCode 198. House RobberYou are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping you from

2017-12-27 00:48:35 133

原创 LeetCode746. Min Cost Climbing Stairs

基础的动态规划题目 LeetCode746. Min Cost Climbing StairsOn a staircase, the i-th step has some non-negative cost cost[i] assigned (0 indexed).Once you pay the cost, you can either climb one or two steps.

2017-12-18 01:04:10 173

原创 LeetCode 121、122、123、188:Best Time to Buy and Sell Stock

之前已经做过该系列较简单的前两道题(121、122),今天将123、188题一齐解了,发现挑战难度提高了许多。于是决定将这四道题的解法汇总在这篇博客里,基本上用的都是动态规划或贪心算法。121. Best Time to Buy and Sell Stock[题目链接]Say you have an array for which the ith element is th

2017-12-07 19:15:31 181

原创 Android Studio:服务与多线程--简单音乐播放器

首先附上代码文件下载地址:http://download.csdn.net/download/reborncgy/10142025一、 实验题目  服务与多线程--简单音乐播放器【目的】1. 学会使用 MediaPlayer;2. 学会简单的多线程编程,使用 Handle 更新 UI;3. 学会使用 Service 进行后台工作;4. 学会使用 Service 与 Ac

2017-12-02 17:14:17 17669 10

原创 Android Studio:Broadcast 静态&动态广播注册

一、 实验题目  Broadcast 使用【目的】1.掌握 Broadcast 编程基础2.掌握动态注册 Broadcast 和静态注册 Broadcast3.掌握Notification 编程基础4.掌握 EventBus 编程基础二、 实现内容在上个实验的基础上,实现静态广播、动态广播两种改变Notification内容的方法。具体要求:(1) 在启动应

2017-12-02 16:37:08 26085

原创 Android Studio:Intent、Bundle、RecyclerView、ListView的使用

一、 实验题目  Intent Bundle RecyclerView ListView的使用【目的】1.复习事件处理2.学习Intent、Bundle在Activity跳转的应用3.学习RecyclerView、ListView以及各类适配器的用法二、 实现内容要求的实现内容较多,此处便不再赘述,详情可见课程提供的实验文档。三、 实验过程先行说明:这次实验要求

2017-12-02 16:25:20 1272

原创 Android Studio:基本事件处理之Toast、Snackbar、AlertDialog

一、 实验题目   事 件 处 理【目的】1.了解 Android 编程基础2.熟悉 ImageView、Button、RadioButton 等基本控件,能够处理这些控件的基本事件3.学会弹出基本的对话框,能够定制对话框中的内容,能对确定和取消按钮的事件做处理二、 实现内容实现一个 Android 应用,界面呈现与上个实验基本一致,要求:(1)该界面为应用

2017-12-02 15:47:36 2053 2

原创 Android Studio:基本UI界面设计 (详细)

一、 实验题目 基本UI界面设计二、 实现内容实现一个 Android 应用,界面呈现如下效果:      三、 实验过程(1)标题  首先我们建立一个TextView控件来写标题。实验对标题的要求如下: 标题字体大小 20sp(android:textSize="20sp")‚ 与顶部距离 20dp  (与父容器顶部对齐后再设置与顶部距离20dp)

2017-12-02 15:01:06 133325 10

原创 利用GIT把项目push到GitHub上の简单示例

一、 实验题目 利用GIT把项目push到GitHub上二、 实现内容1 下载安装Git,并熟悉其使用方法。2 利用Git将任意项目push到GitHub上面。三、 实验结果(1)   实验截图、实验步骤以及关键代码1 成功安装好Git,打开Git Bash,弹出命令行窗口,由于Git是分布式版本控制系统,所以填写以下用户名和邮箱作为标识。 2创建一个名为tes

2017-12-02 14:39:26 1179

原创 LeetCode 121. Best Time to Buy and Sell Stock

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

2017-11-21 00:12:06 118

原创 LeetCode 70. Climbing Stairs 动态规划

昨天下午在Sicily上进行算法分析期中测试,遇到一道这样的题目:求最小和。从数列A[0], A[1], A[2], ..., A[N-1]中选若干个数,要求对于每个i(0 1  请为下面的Solution类实现解决上述问题的函数minSum,函数参数A是给出的数列,返回值为所求的最小和. class Solution {public:    int m

2017-11-13 21:47:05 159

原创 LeetCode 455. Assign Cookies

LeetCode 455.Assign CookiesAssume you are an awesome parent and want to give your children some cookies. But, you should give each child at most one cookie. Each child i has a greed factor gi,

2017-10-30 20:29:56 140

原创 LeetCode122. Best Time to Buy and Sell Stock II

这两周开始接触贪心算法,顾名思义就是使其利益最大化了。先选一道最简单的相关题目来练练手。LeetCode122. Best Time to Buy and Sell Stock IISay you have an array for which the ith element is the price of a given stock on day i.Design a

2017-10-22 21:42:59 220

原创 LeetCode111. Minimum Depth of Binary Tree

LeetCode111.Minimum Depth of Binary TreeGiven a binary tree, find its minimum depth.The minimum depth is the number of nodes along the shortest path from the root node down to the nearest

2017-10-08 21:49:32 195

原创 LeetCode101. Symmetric Tree

依旧是尝试DFS解题,这次选择了LeetCode101 Symmetric Tree题意如下:Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree [1,2,2,3,4,4,3] i

2017-10-01 14:04:15 153

原创 LeetCode 100. Same Tree

这周学习的是DFS(Depth-First-Search)深度优先搜索算法。“它的思想是从一个顶点V0开始,沿着一条路一直走到底,如果发现不能到达目标解,那就返回到上一个节点,然后从另一条路开始走到底,这种尽量往深处走的概念即是深度优先的概念。”由于对该概念不够深入了解,所以这次选择了难度仅为easy的相关题目:LeetCode 100. Same Tree题目要求如下,判断两个二叉树是否

2017-09-23 16:11:34 169

原创 LeetCode169. Majority Element

依旧尝试用分治法解决问题。这次选中的是LeetCode169. Majority Element。难度为easy。题目要求如下:Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times.Yo

2017-09-17 00:16:25 198

原创 LeetCode4. Median of Two Sorted Arrays

之前没钻研过LeetCode,上次做题时,以为要找什么类型的题目就在搜索栏输入对应的关键词,结果输入divide-and-conquer才搜到一题,后来经提醒才知道在网页右侧有个提供各种关键词的topics框部,点击了divide-and-conquer便搜到了好多道相关题目,方便许多。之前真是太蠢了。这次选择的是第4题:Median of Two Sorted Arrays 难度系数为H

2017-09-16 16:12:03 256

原创 LeetCode53. Maximum Subarray

由于这周老师在课堂上提到了分治法,于是便想着做下相关的题目。在LeetCode搜索栏里输入divide-and-conquer,仅搜到了第53题:Maximum Subarray,难度系数为easy。题目要求如下:Find the contiguous subarray within an array (containing at least one number) whi

2017-09-10 14:59:59 188

Android Studio 简易音乐播放器

Android Studio开发的简易音乐播放器app,读取本地SD卡指定路径的mp3文件进行播放,实现以下功能: 1. 播放、暂停,停止,退出功能; 2. 后台播放功能;(service) 3. 进度条显示播放进度、拖动进度条改变进度功能;(多线程handler) 4. 播放时图片旋转,显示当前播放时间功能;

2017-12-02

空空如也

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

TA关注的人

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