0%

在最前面:
在AS中新建project 时,请勾上:

  • This project will support instant apps
  • use androidx.* artifacts 避免版本依赖的问题
Read more »

其实吧,我在这里复制粘贴的这些,根本比不上别人自己手写总结的
如果不是向她借了笔记根本意识不到这一点,真的好认真呀
从今天起认真手写+总结笔记

~END 2019-05-15

Read more »

实验一 JPA基本关联映射实验
  • 双向 One to Many

    • One端使用@OneToMany声明与Many端关系,设置mappedBy属性声明在另一端映射的属性名称
    • Many端使用@ManyToOne声明与One端关系
    Read more »

20. Valid Parentheses

Easy

Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.

An input string is valid if:

  1. Open brackets must be closed by the same type of brackets.
  2. Open brackets must be closed in the correct order.

Note that an empty string is also considered valid.

Read more »

第 8 章 软件项目质量管理
1
2
3
软件质量的基本概念
软件质量管理过程
软件质量计划

质量的定义:使满足要求的程度,包括符合规定的要求和满足顾客的隐含需求(产品或服务满足明确和隐含需要的能力)

软件质量:软件满足明确说明或隐含的需求的程度

软件质量模型
  • Boehm质量模型 :可移植可使用可维护

  • McCall质量模型: 产品转移产品修改产品运行

  • ISO质量模型: 3层

质量的形成:形成于产品或者服务的开发过程中,而不是事后的检查(测试)把关等

质量成本:产品第一次工作不正常而衍生的附加花费: 预防成本; 缺陷成本;

Read more »

做题步骤
  1. 审清题目

    (名词或特殊词组,人名地名 专有名词 数字 百分比)

    ​ 作者观点:第一人称, 强转折处(yet = but = however) ,主观陈述(because, if )
    ​ 作者观点一般和大众观点对立
    ​ many people — as many do
    ​ 注意题干的 副词形容词, 在题干中可能被改写

Read more »

  1. 统一勾画(题目中)关键词,之后阅读文章

    • 特殊名词短语等具有“唯一性词汇”作为关键词
    • 不要选择其他题目中出现3次(含)以上的词汇以及标题里的词汇
    • 每道题至少选择2个以上关键词去定位
    • 注意题目中的否定意义的词汇 (多半会被改写!!!) fewerhardly

唯一性词汇:

  • 数字 并列结构(A and B;either A or B) 百分比

  • 人名 地名 装有名

  • 超纲(原词复现,词性变化,同意替换) 引号 连字符

  1. 扫读文章,先每段末句,再扫未选过的中间
    • 先扫读每段首末句,完成部分题目
    • 再扫读未被选过的段落中间,完成剩余题目
    • 若还有题目未完成,则扫读曾经选过首末句出题的段落
Read more »

减少, 衰退, 退化
  • diminish v. 减少 di - apart + mini - 小 + ish - v.
  • dwindle v. 逐渐减少 dw - down + wind + le - v.
  • lessen v.减少 less + en - v.
  • slash v. 削减 sl - >下滑 slip
  • slump v. 暴跌
  • shorten
  • weaken 减少,减弱
  • stagnant a.停滞的 st–stand 强调不动,静止之义
  • slack a.萧条 sl + lack
  • recession n. 衰退 re–back; cess– to go; ion – n.
  • lower v. 降低
  • depression n.萧条, 衰退 de–down press 按,压
  • degenerate v. 退化 de – down generate 产生
Read more »

阅读词汇第一讲
  • institution n. 协会;制度,习俗 (the ~ of marriage)
  • institute n. 研究所 vt. 建立,设立
  • MIT = Massachusetts Institute of Technology
  • 小学 primary school / elementary
  • 中学 secondary school / high school
  • 大学 university / college

关于机构

  1. 中学

    • 附中 high school affiliated to … (affiliate 附属;加入)
    • High school affiliated/attached to Renmin University of China.
    • attach v.附加; 使附属
    • detach v. 使分开,使分离
    • detached adj. 冷静的,超然的,冷漠的; not reacting in an emotional way
  2. 学术界

  • academic circle
  1. 机构招聘

    • 校园招聘 campus recruitment (recruit v. 招募)
    • 雇佣 employment
    • 智力支持 intellectual support
    • intelligence n. 智力,情报-> intelligent adj. 智力
    • intellect n. -> intellectual adj. (智力,知识,理解力) intellectual property 知识产权
    • intelligence is born,while intellect is made.
    1. 人才流失 brain drain
      • drain n.vi. 排水;流干; vt. 喝光,耗尽
      • drainage n.排水系统
Read more »

Two Sum

Easy 2019-04-30

Given an array of integers, return indices of the two numbers such that they add up to a specific target.

You may assume that each input would have exactly one solution, and you may not use the same element twice.

Example:

1
2
3
4
Given nums = [2, 7, 11, 15], target = 9,

Because nums[0] + nums[1] = 2 + 7 = 9,
return [0, 1].
  • 注意每个元素只能使用一次
  • 两个坑:
    • 当一个数和它的匹配相同是如 [3, 4] target: 6; 6 - 3 = 3,但是这个3 不能再用了
    • [3, 3] target: 6; 第一个3不能用,但是第二个3 还可以用

先将数和索引作为键值对加入map,再去从map中找target - nums[i]

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//2019-04-30
class Solution {
public:
vector<int> twoSum(vector<int>& nums, int target) {
map<int, int> mp;
vector<int> ans;
for (int i = 0; i < nums.size(); i++) {
mp[nums[i]] = i;
}
for (int i = 0; i < nums.size(); i++) {
int need = target - nums[i];
if (mp.count(need) && mp[need] != i) { //注意顺序不能反过来!因为mp[need]若不存在,会被初始化为0
ans.push_back(i);
ans.push_back(mp[need]);
break;
}
}
return ans;
}
};
Read more »