- 博客(55)
- 资源 (1)
- 收藏
- 关注
转载 Gradle 学习
作者:ZY5A59链接:https://juejin.im/post/5cd441f851882554b86d088b来源:掘金Gradle 学习简介Gradle -组织-> task 完成工作Gradle -使用-> groovy 脚本语言 -基于-> jvm项目分析settings.gradlesettings.gradle文件 -gradle构...
2019-08-09 10:41:36 228
原创 Android视图绘制和事件分发相关
Android视图绘制和事件分发相关绘制原理View重绘View绘制流程Android屏幕绘制双缓冲技术View事件分发——递归绘制原理Activity -包含-> PhoneWindow -继承于-> WindowActivity -setContentView()-> 将View设置到PhoneWindow上PhoneWindow -包含-> DecorView...
2019-08-08 11:27:50 281
原创 Android包管理框架、进程框架和Java类加载机制
1. APK的打包流程 资源文件 --AAPT打包--> R.java ...... Ⅰ (AAPT打包:assets和res/raw资源被原装不动地打包进APK,其他资源被编译或处理并被赋予资源ID,同时产生资源索引表resources.arsc) .aidl --AIDL--> Java接口 ...... Ⅱ Ⅰ + Ⅱ + 源码 --JavaC编...
2019-07-25 10:13:11 194
原创 【系统分析与设计】lesson16
使用 ECB 实现 make reservation 用例的详细设计(包含用例简介,顺序图,类图) 用例简介:本用例包含以下操作用户登录网站用户查询订单用户根据位置和时间查询酒店用户选择房间用户提交订单用户支付订单 顺序图: 类图:将逻辑设计类图映射到实际项目框架的包图。用树形结构表述实现的包和类包图:树形图...
2018-06-24 13:30:56 425
原创 【系统分析与设计】lesson13
1. 描述软件架构与框架之间的区别与联系2. 以你的项目为案例绘制三层架构模型图,细致到分区结合你程序的结构,从程序员角度说明三层架构给开发者带来的便利3. 研究 VUE 与 Flux 状态管理的异同...
2018-05-29 14:04:38 460
原创 【系统分析与设计】lesson8
建模工具: UMLet 14.1.1 stand-alone使用 UML State Model 建模对象: 参考 Asg_RH 文档, 对 Reservation/Order 对象建模。 建模要求: 参考练习不能提供足够信息帮助你对订单对象建模,请参考现在 定旅馆 的旅游网站,尽可能分析围绕订单发生的各种情况,直到订单通过销售事件(柜台销售)结束订单。 研究淘宝退货流程活动图,对退货业务对象
2018-05-01 16:03:50 392
原创 【Android入门】MVVM + LiveData & 乱入的butterKnife
1. MVVM 架构分工View 层对应 XML 中的静态UI、 Activity 和 Fragment 中设置显示内容的部分,不处理业务逻辑,不操作或处理数据ViewModel 层只处理业务逻辑和操作处理业务数据,不处理UI相关,简单的事件封装成 Command 处理(?),完成 View 与 Model 间的交互Model 层执行数据获取、储存、 监听状态变化等,是数据的实体...
2018-04-26 23:39:45 1325
原创 【系统分析与设计】lesson7
领域建模a. 阅读 Asg_RH 文档,按用例构建领域模型。 - 按 Task2 要求,请使用工具 UMLet,截图格式务必是 png 并控制尺寸 - 说明:请不要受 PCMEF 层次结构影响。你需要识别实体(E)和 中介实体(M,也称状态实体) 在单页面应用(如 vue)中,E 一般与数据库构建有关, M 一般与 store 模式 有关 在 java web 应用中,E 一般与数据库
2018-04-24 19:31:31 502
原创 【系统分析与设计】homework4
用例建模 a. 阅读 Asg_RH 文档,绘制用例图。 按 Task1 要求,请使用工具 UMLet,截图格式务必是 png 并控制尺寸 b. 选择你熟悉的定旅馆在线服务系统(或移动 APP),如绘制用例图。并满足以下要求:对比 Asg_RH 用例图,请用色彩标注出创新用例或子用例尽可能识别外部系统,并用色彩标注新的外部系统和服务 美团预定酒店流程如下: 用例图...
2018-04-17 11:26:08 293
原创 【系统分析与设计】前端eslint检查 + travis持续集成
1. Eslint简介:ESLint是一种用于识别和报告ECMAScript/JavaScript代码样式的工具,其目标是使代码更加一致并避免错误。在许多方面,它类似于JSLint和JSHint,但有几个例外: - ESLint使用Espree进行JavaScript解析。 - ESLint使用AST来评估代码中的模式。 - ESLint是完全可扩展的,每个规则都是一个插件,可以在运行时添加更多...
2018-04-12 23:52:39 423
原创 【系统分析与设计】Homework2
1、简答题简述瀑布模型、增量模型、螺旋模型(含原型方法)的优缺点。 瀑布模型的优点:有利于大型软件开发过程中人员的组织、管理,有利于软件开发方法和工具的研究,从而提高了大型软件项目开发的质量和效率。 瀑布模型的缺点:开发过程一般不能逆转,否则代价太大;实际的项目开发很难严格按该模型进行;客户往往很难清楚地给出所有的需求;软件的实际情况必须到项目开发的后期客户才能看到,这要求...
2018-03-16 11:02:54 225
原创 【系统分析与设计】Homework1
1、简单题软件工程的定义。 (1) 将系统化、规范化、可度量的方法应用与软件的开发、运行和维护的过程,即将工程化应用于软件中。 (2) 对(1)中所述方法的研究。——IEEE[IEE93]阅读经典名著“人月神话”等资料,解释 software crisis、COCOMO 模型。 软件危机(Software Crisis)是早期计算机科学的一个术语,是指在软...
2018-03-11 15:52:10 262
原创 【LeetCode算法练习(C++)】Multiply Strings
题目: Given two non-negative integers num1 and num2 represented as strings, return the product of num1 and num2. Note: The length of both num1 and num2 is < 110. Both num1 and num2 contains only digi
2018-01-09 10:42:09 387
原创 【LeetCode算法练习(C++)】Trapping Rain Water
题目: Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining. For example, Given [0,1,0,2,1,0,1,3,2,1,2
2018-01-07 17:57:40 223
原创 【算法习题】证明吝啬SAT问题为NP完全问题
题目: 吝啬SAT问题是这样的:给定一组子句(每个子句都是其中文字的析取)和整数k,求一个最多有k个变量为true的满足赋值——如果该赋值存在。证明吝啬SAT是NP-完全问题。SAT问题: 假设有子句: (a⋃b⋃c)⋂(a⋃b¯)⋂(b⋃c¯)(a¯⋂c)⋂(a¯⋃b¯⋃c¯) 求a,b,c的取值(true or false)使得该表达式的结果是true。不难发现,这个表达式不存在一个合适
2017-12-28 20:19:35 469
原创 【LeetCode算法练习(C++)】First Missing Positive
题目: Given an unsorted integer array, find the first missing positive integer. For example, Given [1,2,0] return 3, and [3,4,-1,1] return 2. Your algorithm should run in O(n) time and uses constan
2017-12-26 10:53:44 246
原创 【LeetCode算法练习(C++)】Combination Sum II
题目: Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T. Each number in C may only be used once in the combin
2017-12-20 15:08:27 289
原创 【LeetCode算法练习(C++)】Combination Sum
题目: Given a set of candidate numbers (C) (without duplicates) and a target number (T), find all unique combinations in C where the candidate numbers sums to T. The same repeated number may be chosen
2017-12-11 11:20:30 214
原创 【LeetCode算法练习(C++)】Count and Say
题目: The count-and-say sequence is the sequence of integers with the first five terms as following: 1. 1 2. 11 3. 21 4. 1211 5. 111221 1 is read off as “one 1” or 11. 11 is
2017-12-11 09:13:28 267
原创 【LeetCode算法练习(C++)】Search Insert Position
题目: Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order. You may assume no duplicates in the arr
2017-12-04 10:30:53 202
原创 【LeetCode算法练习(C++)】Search for a Range
题目: Given an array of integers sorted in ascending order, find the starting and ending position of a given target value. Your algorithm’s runtime complexity must be in the order of O(log n). If the
2017-11-27 09:39:39 186
原创 【LeetCode算法练习(C++)】Search in Rotated Sorted Array
题目: Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2). You are given a target value to search. If found
2017-11-20 22:15:57 138
原创 【LeetCode算法练习(C++)】Longest Valid Parentheses
题目: Given a string containing just the characters ‘(’ and ‘)’, find the length of the longest valid (well-formed) parentheses substring. For “(()”, the longest valid parentheses substring is “()”, wh
2017-11-13 18:39:39 162
原创 【LeetCode算法练习(C++)】Next Permutation
题目: Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers. If such arrangement is not possible, it must rearrange it as the lowest possib
2017-11-13 09:32:51 196
原创 【LeetCode算法练习(C++)】Substring with Concatenation of All Words
题目: You are given a string, s, and a list of words, words, that are all of the same length. Find all starting indices of substring(s) in s that is a concatenation of each word in words exactly once a
2017-11-12 20:43:49 169
原创 【LeetCode算法练习(C++)】Divide Two Integers
题目: Divide two integers without using multiplication, division and mod operator. If it is overflow, return MAX_INT.链接:Divide Two Integers 解法:将除法转换为减法,被除数每次减去的值翻倍,注意符号的变化和临界值处理。时间O(logn)class Soluti
2017-11-01 13:59:06 176
原创 【LeetCode算法练习(C++)】Implement strStr()
题目: Implement strStr(). Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.链接:Implement strStr() 解法:两重循环暴力求解。时间O(mn)class Solution {public:
2017-10-25 18:32:48 118
原创 【LeetCode算法练习(C++)】Remove Element
题目: Given an array and a value, remove all instances of that value in place and return the new length. Do not allocate extra space for another array, you must do this in place with constant memory.
2017-10-25 17:04:28 134
原创 【LeetCode算法练习(C++)】Remove Duplicates from Sorted Array
题目: Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate extra space for another array, you must do this in place w
2017-10-25 16:56:23 138
原创 【LeetCode算法练习(C++)】Reverse Nodes in k-Group
题目: Given a linked list, reverse the nodes of a linked list k at a time and return its modified list. k is a positive integer and is less than or equal to the length of the linked list. If the numbe
2017-10-20 16:00:50 282
原创 【LeetCode算法练习(C++)】Swap Nodes in Pairs
题目: Given a linked list, swap every two adjacent nodes and return its head. For example, Given 1->2->3->4, you should return the list as 2->1->4->3. Your algorithm should use only constant space.
2017-10-20 14:51:22 142
原创 【LeetCode算法练习(C++)】Merge k Sorted Lists
题目: Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity.链接:Merge k Sorted Lists 解法:递归实现归并,利用merge Two Lists,每次合并两个序列。时间O(nlogn)class Solution {public:
2017-10-18 17:38:53 187
原创 【LeetCode算法练习(C++)】Generate Parentheses
题目: Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. For example, given n = 3, a solution set is: [ “((()))”, “(()())”, “(())()”, “
2017-10-18 15:24:43 147
原创 【LeetCode算法练习(C++)】Merge Two Sorted Lists
题目:Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.连接:Merge Two Sorted Lists 解法:比较两链表头值大小,将小者插入新链表尾,若任一链表为空
2017-10-16 10:16:00 165
原创 【LeetCode算法练习(C++)】Valid Parentheses
题目: Given a string containing just the characters ‘(‘, ‘)’, ‘{‘, ‘}’, ‘[’ and ‘]’, determine if the input string is valid. The brackets must close in the correct order, “()” and “()[]{}” are all vali
2017-10-13 15:13:00 189
原创 【LeetCode算法练习(C++)】Remove Nth Node From End of List
题目: Given a linked list, remove the nth node from the end of list and return its head. For example, Given linked list: 1->2->3->4->5, and n = 2. After removing the second node from the end, the l
2017-10-13 14:56:42 176
原创 【LeetCode算法练习(C++)】4Sum
题目: Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target? Find all unique quadruplets in the array which gives the sum of target. Note: The solutio
2017-10-09 08:56:13 239
原创 【LeetCode算法练习(C++)】Letter Combinations of a Phone Number
题目: Given a digit string, return all possible letter combinations that the number could represent. A mapping of digit to letters (just like on the telephone buttons) is given below. Input:Digit s
2017-10-08 16:07:30 319
原创 【LeetCode算法练习(C++)】3Sum
题目: Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero. For example, given array S = [-1, 0, 1
2017-10-08 15:19:26 216
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人