tell me one of your favorite project-练习英语
原则:引导面试官,不要提很多自己不清楚的东西
【DFS模板】
【BFS】
q.offer(root)在最上端,q创建后紧随其后
扩展时用的是q.poll()中的head
【segment tree】
【lambda】
- Lambda 表达式可以使代码变的更加简洁紧凑。
- 语法
- lambda 表达式的语法格式如下:
- (parameters) -> expression
- 或
- (parameters) ->{ statements; }
- Arrays.sort(players, (String s1, String s2) -> (s1.compareTo(s2)));
【设计模式】
Factory
singleton
【recursive bs】
- // Java implementation of recursive Binary Search
- class BinarySearch
- {
- // Returns index of x if it is present in arr[l..
- // r], else return -1
- int binarySearch(int arr[], int l, int r, int x)
- {
- if (r>=l)
- {
- int mid = l + (r - l)/2;
- // If the element is present at the
- // middle itself
- if (arr[mid] == x)
- return mid;
- // If element is smaller than mid, then
- // it can only be present in left subarray
- if (arr[mid] > x)
- return binarySearch(arr, l, mid-1, x);
- // Else the element can only be present
- // in right subarray
- return binarySearch(arr, mid+1, r, x);
- }
- // We reach here when element is not present
- // in array
- return -1;
- }
【index用于加速查询】
- CREATE INDEX index_name
- on table_name (column1, column2);
【inheritance继承 就是extens子类】
- // derived class
- class MountainBike extends Bicycle
- {
- // the MountainBike subclass adds one more field
- public int seatHeight;
- // the MountainBike subclass has one constructor
- public MountainBike(int gear,int speed,
- int startHeight)
- {
- // invoking base-class(Bicycle) constructor
- super(gear, speed);
- seatHeight = startHeight;
- }
- // the MountainBike subclass adds one more method
- public void setHeight(int newValue)
- {
- seatHeight = newValue;
- }
- // overriding toString() method
- // of Bicycle to print more info
- @Override
- public String toString()
- {
- return (super.toString()+
- "\nseat height is "+seatHeight);
- }
- }
【封装的好处】
使用封装有三大好处:隐藏控制修改的影响。
1、良好的封装能够减少耦合、影响。
2、类内部的结构可以自由修改。
3、可以对成员进行更精确的控制。
4、隐藏信息,实现细节。
- public class Husband {
- /*
- * 对属性的封装
- * 一个人的姓名、性别、年龄、妻子都是这个人的私有属性
- */
- private String name ;
- private String sex ;
- private int age ;
- private Wife wife;
- /*
- * setter()、getter()是该对象对外开发的接口
- */
- public String getName() {
- return name;
- }
- public void setName(String name) {
- this.name = name;
- }
- public String getSex() {
- return sex;
- }
- public void setSex(String sex) {
- this.sex = sex;
- }
- public int getAge() {
- return age;
- }
- public void setAge(int age) {
- this.age = age;
- }
- public void setWife(Wife wife) {
- this.wife = wife;
- }
- }
【Java关键字 - 类与类之间使用】
【public】不管在哪个包,随意调用
【private】仅仅在本类下面调用,就算该类被别的类继承extends了,也无法使用private权限的变量和函数
【protected】主要跟继承有关系。
【java和c的区别,string和stringbuilder的区别,java和python的区别】
过程&对象,是否跨平台
String 字符串常量
StringBuffer 字符串变量(线程安全)
StringBuilder 字符串变量(非线程安全)
Dynamic vs Static Typing 动态类型 vs. 静态类型. not as strong virtual machine.
【angularjs的dependency】
pass dependency to an object when it is called
avoid【ajax】
asynchronous Web applications.
avoid【 jQuery】
JS famework
【MySQL vs mongodb】
dynamic/ data type/ programming动态编程的数据类型
【OOP】
对象的“抽象”、“封装”、“继承”、“多态”
【多线程,死锁,memory】
【什么时候用interface,abstract class,polymorphism,encapsulation(data-hiding)】
interface: use implement, has abstact method, can be many
abstract class:general variables , has abstact method,have construcror, only one
【按照他给的要求,设计一个employee的class。封装一些信息什么的】
要有返回对象的constructor
public
class
Employee
{
// create data fields
private
String firstName;
private
String lastName;
private
String phoneNumber;
private
String address;
private
int
id;
private
String title;
private
double
Salary;
// Construct a default Employee object
public
Employee()
{
}
// Construct a second constructor
public
Employee (String newFirstName, String newLastName)
{
firstName = newFirstName;
lastName = newLastName;
}
//This method returns a String with the contents of
//the variable firstName to whatever object calls it
public
String getFirstName()
{
return
firstName;
}
//This method allows the contents of firstName
//to be changed to store a different String value, should that be required
public
void
setFirstName (String newFirstName)
{
firstName = newFirstName;
}
}
【project里怎么用到JUnit的】
【web实现问了http怎么通信】
capacity:Short polling>long polling>long connection SSE>WebSocket;
perf: opposite
【full-stack的project问web相关的问题,request, response包含什么,Restful API是啥等等】
URL定位资源,用HTTP动词(GET,POST,PUT,DELETE)描述操作。
- GET:http://www.xxx.com/source/id 获取指定ID的某一类资源。例如GET:http://www.xxx.com/friends/123表示获取ID为123的会员的好友列表。如果不加id就表示获取所有会员的好友列表。
- POST:http://www.xxx.com/friends/123表示为指定ID为123的会员新增好友。其他的操作类似就不举例了。
- ---------------------
- 作者:hjc1984117
- 来源:CSDN
- 原文:https://blog.csdn.net/hjc1984117/article/details/77334616
- 版权声明:本文为博主原创文章,转载请附上博文链接!
【sql 的安全相关的东西】
SQL注入可以分为平台层注入和代码层注入。前者由不安全的数据库配置或数据库平台的漏洞所致;后者主要是由于程序员对输入未进行细致地过滤,从而执行了非法的数据查询。
【设计数据库:想要在你的系统里查询自己股票情况】
UX - LOGIN- ACCOUNT& TRANSACTION INTERFACE
DB:
ACCOUNT: ID OWNER HISTORY INFO要有一个存历史信息的账户
ADMIN: NAME/EMAIL/PHONE/PASSWORD...
USER: NAME/EMAIL/PHONE/PASSWORD...
TRANSACTION: BUY/SELL/CANCELL 要写交易哦
核心功能:注册登陆,
QPS:
⚓️困难:
⚓️用了什么:
⚓️效果:
⚓️收获什么:
tell me one of your favorite project-练习英语的更多相关文章
- .NET Core系列 : 2 、project.json 这葫芦里卖的什么药
.NET Core系列 : 1..NET Core 环境搭建和命令行CLI入门 介绍了.NET Core环境,本文介绍.NET Core中最重要的一个配置文件project.json的相关内容.我们可 ...
- 记一个mvn奇怪错误: Archive for required library: 'D:/mvn/repos/junit/junit/3.8.1/junit-3.8.1.jar' in project 'xxx' cannot be read or is not a valid ZIP file
我的maven 项目有一个红色感叹号, 而且Problems 存在 errors : Description Resource Path Location Type Archive for requi ...
- ASP.NET Core project.json imports 是什么意思?
示例代码: "frameworks": { "netcoreapp1.0.0": { "imports" : "portable- ...
- PhpStorm和WAMP配置调试参数,问题描述Error. Interpreter is not specified or invalid. Press “Fix” to edit your project configuration.
PhpStorm和WAMP配置调试参数 问题描述: Error. Interpreter is not specified or invalid. Press “Fix” to edit your p ...
- Crystal Clear Applied: The Seven Properties of Running an Agile Project (转载)
作者Alistair Cockburn, Crystal Clear的7个成功要素,写得挺好. 敏捷方法的关注点,大家可以参考,太激动所以转载了. 原文:http://www.informit.com ...
- CSharpGL(20)用unProject和Project实现鼠标拖拽图元
CSharpGL(20)用unProject和Project实现鼠标拖拽图元 效果图 例如,你可以把Big Dipper这个模型拽成下面这个样子. 配合旋转,还可以继续拖拽成这样. 当然,能拖拽的不只 ...
- Microsoft Visual Studio 2013 — Project搭载IIS配置的那些事
前段时间在改Bug打开一个project时,发生了一件奇怪的事,好好的一直不能加载solution底下的这个project,错误如下图所示:大致的意思就是这个project的web server被配置 ...
- My First Android Application Project 第一个安卓应用
一.前言: 安卓(Android):是一种基于Linux的自由及开放源代码的操作系统,主要用在移动设备上,如手机.平板电脑.其他的设备也有使用安卓操作系统,比如:电视机,游戏机.数码相机等等. 二.具 ...
- ASP.NET Core中的project.json何去何从?
Shawn Wildermuth (https://wildermuth.com/2016/05/12/The-Future-of-project-json-in-ASP-NET-Core) If y ...
- 【原创】记一次Project插件开发
一.开发背景 最近在使用微软的Office Project 2010 进行项目管理,看到排的满满的计划任务,一个个地被执行完毕,还是很有成就感的.其实,不光是在工作中可以使用Project进行项目进度 ...
随机推荐
- numpy的linspace函数
numpy.linspace(start, stop, num=50, endpoint=True, retstep=False,dtype=None)[source] 文档:https://docs ...
- Windows Storage Stack
- solr 7+tomcat 8 + mysql实现solr 7基本使用(安装、集成中文分词器、定时同步数据库数据以及项目集成)
基本说明 Solr是一个开源项目,基于Lucene的搜索服务器,一般用于高级的搜索功能: solr还支持各种插件(如中文分词器等),便于做多样化功能的集成: 提供页面操作,查看日志和配置信息,功能全面 ...
- Ubuntu下mysql的卸载重装
注:该方法是彻底删除ubuntu下面的文件,然后重新安装,更新root密码,所以mysql原数据会被删掉,所以一定一定要记得备份!!!!!!!! 转自:http://blog.csdn.net/chu ...
- selenium+python自动化89-用例不通过的时候发送邮件
前言 实现需求:当测试用例全部通过的时候,不发邮件,当用例出现Error或Failure的时候发送邮件 解决思路:生成html测试报告后,用bs4解析html页面,写个函数判断页面上是都有不通过的记录 ...
- nslookup域名解析
域名解析 nslookup docker.xxx.com.cn
- php读取word里面的内容antiword
其实是现在一个linux下的扩展 1 先安装 antiword yum antiword install 2 写测试php代码 header("Content-type: text/htm ...
- 常用HTTP状态码
1.常用状态码介绍 在http响应协议中,我们通过HttpWatch抓包抓取到响应信息.其中响应首行中就包含一个状态码.状态码由三位数字组成,表示请求是否被理解或者被满足.HTTP响应状态码的第一个数 ...
- body{font-size: 62.5%;} 解释
为什么body{font-size: 62.5%;} 2012-10-25 16:15 16778人阅读 评论(0) 收藏 举报 分类: css问题(17) 在网页设计中我们经常看见body{fo ...
- ncodeURIComponent() 函数 vue内容
ncodeURIComponent() 函数 编辑 encodeURIComponent() 函数[1] 作用:可把字符串作为URI 组件进行编码.其返回值URIstring 的副本,其中的某些字符 ...