原则:引导面试官,不要提很多自己不清楚的东西

【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-练习英语的更多相关文章

  1. .NET Core系列 : 2 、project.json 这葫芦里卖的什么药

    .NET Core系列 : 1..NET Core 环境搭建和命令行CLI入门 介绍了.NET Core环境,本文介绍.NET Core中最重要的一个配置文件project.json的相关内容.我们可 ...

  2. 记一个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 ...

  3. ASP.NET Core project.json imports 是什么意思?

    示例代码: "frameworks": { "netcoreapp1.0.0": { "imports" : "portable- ...

  4. 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 ...

  5. Crystal Clear Applied: The Seven Properties of Running an Agile Project (转载)

    作者Alistair Cockburn, Crystal Clear的7个成功要素,写得挺好. 敏捷方法的关注点,大家可以参考,太激动所以转载了. 原文:http://www.informit.com ...

  6. CSharpGL(20)用unProject和Project实现鼠标拖拽图元

    CSharpGL(20)用unProject和Project实现鼠标拖拽图元 效果图 例如,你可以把Big Dipper这个模型拽成下面这个样子. 配合旋转,还可以继续拖拽成这样. 当然,能拖拽的不只 ...

  7. Microsoft Visual Studio 2013 — Project搭载IIS配置的那些事

    前段时间在改Bug打开一个project时,发生了一件奇怪的事,好好的一直不能加载solution底下的这个project,错误如下图所示:大致的意思就是这个project的web server被配置 ...

  8. My First Android Application Project 第一个安卓应用

    一.前言: 安卓(Android):是一种基于Linux的自由及开放源代码的操作系统,主要用在移动设备上,如手机.平板电脑.其他的设备也有使用安卓操作系统,比如:电视机,游戏机.数码相机等等. 二.具 ...

  9. ASP.NET Core中的project.json何去何从?

    Shawn Wildermuth (https://wildermuth.com/2016/05/12/The-Future-of-project-json-in-ASP-NET-Core) If y ...

  10. 【原创】记一次Project插件开发

    一.开发背景 最近在使用微软的Office Project 2010 进行项目管理,看到排的满满的计划任务,一个个地被执行完毕,还是很有成就感的.其实,不光是在工作中可以使用Project进行项目进度 ...

随机推荐

  1. Linux常用的一些基础命令

    删除 rm -rvf * -f:强制删除文件或文件夹 -r:递归的删除文件或文件夹 -i:删除文件或文件夹前需要确认 -v:详细显示进行步骤 查看 ls ll        ls -l cat mor ...

  2. [UE4]创建多把枪,使用Class,参数的对象类型

    先来说说函数输入参数的区别: 1.Object Reference 2.Class Reference 会出现可以让你选择一个类 3.Soft Object Reference 4.Soft Clas ...

  3. Spark学习笔记3:键值对操作

    键值对RDD通常用来进行聚合计算,Spark为包含键值对类型的RDD提供了一些专有的操作.这些RDD被称为pair RDD.pair RDD提供了并行操作各个键或跨节点重新进行数据分组的操作接口. S ...

  4. php字符串类型讲解

    PHP 支持八种原始类型(type). 四种标量类型: string(字符串) integer(整型) float(浮点型,也作 double ) boolean(布尔型) 两种复合类型: array ...

  5. linux-centos6/7初始配置

    关闭防火墙 chkconfig iptables off centos7下的命令为 systemctl stop firewalld.service #停止Firewall systemctl dis ...

  6. SDOI2018游记

    为什么要写游记呢? 游啊游啊游啊游...

  7. Linux命令行下如何终止当前程序

    Linux命令行下如何终止当前程序 快捷键: Ctrl+c 在命令行下起着终止当前执行程序的作用, Ctrl+d 相当于exit命令,退出当前shell Ctrl+s 挂起当前shell(保护作用很明 ...

  8. Spring学习之AOP详解

    aop使用方式 @Aspect注解 wildcards通配符: * 匹配任意数量的字符 + 匹配指定类及其子类 .. 一般用于匹配任意数的子包或参数 operators运算符 && 与 ...

  9. HTML|CSS之前端入门

    知识内容: 1.计算机网络综述 2.web基础 3.HTML与CSS介绍 4.JavaScript与jQuery介绍 一.计算机网络综述 1.什么是计算机网络 计算机网络是指将地理位置不同.具有独立功 ...

  10. openlayers-热地图加载(完整版及代码)

    //地圖加載function mapInit(data){ //底图// var raster = new ol.layer.Tile({// source: new ol.source.Stamen ...