![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Interview
文章平均质量分 54
Tech In Pieces
这个作者很懒,什么都没留下…
展开
-
谈判技巧---From一亩三分地帖子
reference:https://www.1point3acres.com/bbs/thread-689770-1-1.htmlhttps://www.1point3acres.com/bbs/thread-690123-1-1.html前言: 对于这种人际交往的东西,虽然实践出真知 但是很多情况又极其复杂 而且很多时候发生了一次就不会再次发生。而且前辈的经验 越具体越不好 因为这些具体的情况都很难完全应用 而且就算遇到了你也想不到。所以 最好是一些general的建议。首先要明确 工作生活的大原创 2020-11-23 00:26:45 · 901 阅读 · 0 评论 -
静态/非静态成员 以及 private/public 关键字的再理解
忘了记 记了忘 忘了再记 并一次次的加深理解。之所以我们不说 静态/非静态属性 是因为static关键字不但可以修饰属性 也可以修饰方法(甚至类)。因此我们这里统一称作 静态/非静态成员类的静态成员与非静态成员的主要区别在于:静态只能通过 类名.属性名/函数名进行调用 比如:String.valueOf(),类的实例是不能直接调用的而非静态修饰的成员 只有在此类被实例化之后 才能通过这个实例化的成员进行调用。这个是最常用的办法 因为大多数类里面的东西是没有static关键字的。其他两者之间的区别:原创 2020-07-06 02:50:01 · 450 阅读 · 0 评论 -
经典算法-简短解释(面试向)
排序算法冒泡:双指针,每次遍历只排好一个的顺序选择:分为两个区 有序区和无序区。无序区和有序区随着我们遍历次数的增加而此消彼长。每次我们都只遍历无序区,然后找出其中最大/最小的放在有序区的最后或者最前面。(无序放入有序,扫描无序)插入:也是分成有序区和无序区,,但是这次对于每个无序区的数据,我们在有序区内扫描,找到这个数据的位置,插进去。(无序插入有序,扫描有序)快速:任意选取一个pivot(基准元素),遍历其他的元素,小的放前大的放后。这样,我们每遍历一遍,不管其他元素如何,pivot的位置是肯定原创 2021-06-17 04:30:00 · 233 阅读 · 0 评论 -
HTTP状态码速记(面试向)
2表示完全成功了。(success)3表示部分成功了 还需要进一步操作(比如需要验证之类的)(redirection)1表示 成不成功不知道 只是请求被接受了 等待进一步处理。(informational)4表示客户端错误()5表示服务器短错误所以按照宏观的成功度进行排序12345-》23145需要你现场举两个例子?知道这九个就足够了。204-no content206-partial content301-moved permanently302-moved temporarily(原创 2021-06-03 05:39:58 · 408 阅读 · 0 评论 -
软件版本号命名规则
X.Y.Z重要程度从左到右。X=0是开发或测试阶段。当产品出现重大更新、重写、不再向后兼容的情况时 X+1,YZ清零Y表示功能更新。如果有哪些功能更新就Y+1后面清零。Z表示小修改,比如说bug修复或者是对页面的UI布局做了调整,除了版本号之外还会有一些修饰的词,比如: alpha: 内部版本 beta: 测试版 rc: 即将作为正式版发布 lts: 长期维护软件版本号...原创 2021-06-03 05:39:44 · 400 阅读 · 0 评论 -
电梯停车场扑克牌--三大经典OOD详解之电梯(二解)
首先想一想有哪些类: request elevatorSystem, evalator, elevatorButtons然后画出UML图,当然 这个图我们也不可能一下子就画出来的,要先想一下User case.所谓的user case,就是每个类都需要做什么操作。比如说 elevator:,有如下几个user cases:take external requesttake internal requestopen gateclose gatecheck weight还有一个elevator原创 2021-05-27 06:40:24 · 970 阅读 · 0 评论 -
如何画UML图?(广泛用于OOD面试中)
当过了和面试官clarify的阶段,就要开始设计类,然后就是类的属性和方法的设计了,这个时候,别光说,需要写下来。首先写类名然后写属性最后写方法当然不能简简单单只写一个名字就完事了,应该标出public、static等等的属性.常见的符号含义:+ public - private(只能本类调用 子类都不行) # protected(本类和子类调用都行)画完所有的类图 要注意有一些之间可能有一些继承关系 可以用接口抽象出来。我们不需要以开始就考虑什么继承关系 这样会把我们的思路复杂化很多 感觉无原创 2021-05-27 06:23:09 · 176 阅读 · 0 评论 -
谈谈常见的“小”bug--From 一亩三分地帖子
1 Sanity Check,没有对输入进行检查。通常Leetcode都会给出具体的输入范围,但是其他网站或者工作中可没有,所以机会对于任何程序,我都把coner case和base case写全。比如让你找k个最接近的值,这个k的取值范围一定要注意,如果k >= n,那就没必要再找了。比如让你找第k个最大值或者最小值,那就直接把k = 1和k = n - 1的结果作为base case返回。这样的好处是后面处理会更少bug也会更快一点,尤其是DP题目的时候,有时候你定义dp[] = new int原创 2021-05-23 08:58:33 · 201 阅读 · 0 评论 -
通俗易懂的最常见的几种策略模式--使用场景及如何实现
策略模式:适用场景:当不同的行为堆砌在一个类中时,就很难避免使用条件语句来选择合适的行为。讲这些行为封装在一个个独立的Strategy类中,可以在使用这些行为的类中消除条件语句。就是说,针对不同场景,我们应该避免使用过多的if else语句,而是对这些if else中的语句(我们称之为策略,不同场景下选择不同的策略)进行独立建类,称之为 策略类。如何实现:代理模式:使用场景:这个模式很好理解,就是加入一个中间人,至于为什么想要加入这个中间人,可能的原因如下:当我们想要隐藏某个类,或者当一个类需要对不原创 2021-05-20 09:22:56 · 585 阅读 · 0 评论 -
JDBC Java Interview Questions
1 what is JDBC driver?it’s a software component that enables Java application to interact with the databases/there are four types of JDBC drivers:2 the steps to connect a database in Java?register the drive classcreate connectioncreate statementexe原创 2021-03-14 06:59:49 · 128 阅读 · 0 评论 -
Common Java Interview Questions and Answers
7 kind of common questions:Basic Java Interview QuestionsJava OOPs Interview QuestionsJDBC Interview QuestionsSpring Interview QuestionsHibernate Interview QuestionsJSP Interview QuestionsJava Exception and Thread Interview Questionslet conquer th原创 2021-03-13 11:56:45 · 195 阅读 · 0 评论 -
自己面试的超级薄弱点
这些薄弱点就是那些:自己清楚一点点但是说不清的,自己完全不清楚的,自己记得这个东西但是完全忘记的,自己对于简历上的事情模棱两可。或者对于BQ的回答没有故事去讲(或者有故事,但是因为时间久远或者其他原因,说不清楚的),或者对于OOD或者系统设计知道大致流程,但是就是怎么都不愿意自己想(这个毛病由来已久)一个崭新的题目不知道如何下手一个做过的题目只有看答案才能好好写所以要怎么样?一个一个解决呗,下狠心就是干!别特么再拖延了!!重复重复重复!直到自己记住!!...原创 2021-03-11 01:59:06 · 226 阅读 · 0 评论 -
大佬面试Google/FaceBook做题要注意的点总结
1 一定要明确input output(我感觉这都说烂了)2 common sense:走不通就换个方向3 if else 语句应该怎么写?首先排除确定的和简单的,最好把行为模式一样的group起来原创 2021-01-09 23:06:02 · 122 阅读 · 0 评论 -
What’s difference between 1’s Complement and 2’s Complement?
1’s complement of a binary number is another binary number obtained by toggling all bits in it, i.e., transforming the 0 bit to 1 and the 1 bit to 0.Let numbers be stored using 4 bits1’s complement of 7 (0111) is 8 (1000)1’s complement of 12 (1100) is 3原创 2021-01-09 06:33:59 · 288 阅读 · 0 评论 -
What is microservice?(什么是微服务?)
总是在听人说 微服务微服务 那么究竟什么是微服务?MS, is an approach to application development in which a large application is built as a suite of modular components or services. each module supports a specific task or business goal and uses a simple , well defined interface, su原创 2021-01-09 06:33:33 · 245 阅读 · 0 评论 -
OCI面经---Coding篇
简单的一道题目,就是垂直访问树。给一个二叉树。竖着优先访问树。然后就是一道最基础的 BFS 题目,用 map 的形式给一个 friends 的 graph,找到一个人的 level1 的 friends, level2 的 friends 并打印。时空复杂度也都没啥要求。20分钟写完了算法,然后写 test case的时候要写好多个 friend array,其中一个地方复制错了,导致最后的结果一直跑不对。我就和对面一起对着我的算法 code 找了20分钟的 bug…最后才找到这个很无聊的 bug…求原创 2021-01-09 06:27:43 · 1322 阅读 · 0 评论 -
OCI面经--流程篇
https://www.1point3acres.com/bbs/forum.php?mod=viewthread&tid=696103&highlight=ociHR call+电面+Final Interview(三轮VO: LC49,BQ,Design Hashmap)HR call就是:如果简历符合jb上minimum requirement的话,好好准备一下简历就可以了吧,当时HR问了我很多实习的details店面:店面没有问lc,问了一些基础,比如list和set的区别,然原创 2021-01-08 09:25:07 · 463 阅读 · 0 评论 -
Amazon Leadership Principles博客文章 别人的笔记
Leadership principles 文章https://medium.com/@scarletinked/are-you-the-leader-were-looking-for-interviewing-at-amazon-8301d787815dCustomer obsession 考虑客户需求/体验We’ve regularly made decisions at Amazon which lowered profit/sales, because it was the right thi原创 2021-01-08 04:33:52 · 489 阅读 · 2 评论 -
Interviewing at Amazon — Leadership Principles Reading Notes
Reference: Interviewing at Amazon — Leadership Principles这里面有好多大义凛然的话我们可以去说。基本上句句经典。In summary, what the company from you, is the way to solve any problems. so that means, you have to thinking throughly all the time, like we should always thinking about:原创 2021-01-08 04:31:16 · 703 阅读 · 0 评论 -
How to market the product?
When we asked to market a product in an interview, we should divided and conquer this problem in the following way:that depends on what phrase this product is in:if it is a brand new productif it is a developing productif it is a developed productwhe原创 2021-01-08 03:07:01 · 303 阅读 · 0 评论 -
BQ问题:Did you ever do something which beyond you asked?
I worked in a start up to develop an iOS software for online interests sharing community, and I was asked to add some contact form on the help page. I wrote the contact-us form for customer questions, but then I was watching the questions coming in (out of原创 2021-01-08 01:11:49 · 131 阅读 · 0 评论 -
LinkedIn Reach out Template
就是发送加人请求的时候不要光加,要发送一段信息表示问候:Hi! I am XXXX, a software development engineer. Recently I am looking for SDE positions. I hope it is okay to reach out. I am very interested at Company Name, so I would like to connect. If possible, I would love to learn more原创 2021-01-08 00:36:35 · 242 阅读 · 0 评论 -
BQ问题--Do you want to ask anything about me?(问问题环节)
What’s a week look like around here? -What is it that you would like someone in this position to accomplish in the first 90 days?What is the one trait that you see in people that makes them really successful in this position?**What are some of the chall原创 2021-01-07 10:15:57 · 243 阅读 · 0 评论 -
BQ问题--What‘s your expectation in this role?(How do you see yourself in 5 years?)
In the first 2-3 years, I see myself becoming a true expert and master at my role as a software engineer at Amazon. I plan to really immerse myself in the position, understand areas that can be improved on, keep learning and improving myself. Hope to get a原创 2021-01-07 10:13:07 · 558 阅读 · 0 评论 -
BQ问题--Why this company?(Why this position? Why leave the last job)
Why Microsoft / MSFT?Objective: Microsoft is a top internet company. The growth of this company is pretty impressive, it has a wide range of products like OneDrive, Outlook, Skype, and Teams etc. The best part about technology is seeing what the world doe原创 2021-01-07 10:04:12 · 637 阅读 · 0 评论 -
以Skyline问题来看hard问题在面试的时候如何解决?
问题:同问碰到skyline这种题该怎么办。如果直接说出最优解,一看就知道是背过的。。。回答:较难的hard题,最好在彻底理解答案的基础上背题。面试官比较看重的是得到这个解法的过程。追问:怎么体现这个这个解题的过程呢?回答:题目要求的是建筑的剪影,可以抽象为每个固定横坐标上的最高点**(划重点:提取问题核心)。因此这个解法可以分成两部分**:(1)如何把input转换为线性,从而抽象成扫描线问题(甩名词:sweep line)(2)扫描线的具体实现第一部分,如果想要简单扫一遍,数据必须是原创 2021-01-02 02:57:47 · 571 阅读 · 0 评论 -
谈谈coding面试的种类与基本应对策---一亩三分地帖子
Refer:coding面试中类与基本的应对策略Coding 种类与应对策略大致上, 面试官在开始面试前, 会收到一封email, 里面回大致说明每个人需要侧重于考察面试者的哪个方面。 对于coding来说, 一般有三类问题, 每个面试官会被分配到一类问题。1.solid coding这类问题说白了, 谁都知道怎么做, 纯粹就是考察coding是不是扎实, 平时自己写code多不多, 能不能快速的把自己的idea转化为code。 对于面试者来说属于必考种类, new grad 一般会有两轮甚至三轮原创 2021-01-02 02:31:02 · 4949 阅读 · 0 评论 -
如何写出干净整洁的代码?
之前写swift 写的跟屎一样 以后真的工作写成这样就GG了。干净整洁的代码这几个基本原则我都懂:使用一致的格式和缩进使用清晰的变量名和方法名在必要时使用注释使用「DRY」原则(不要重复做一件事)写起来也能大致遵守着几条原则 但是有些时候局限于自己捉急的代码实现能力 不知道这种功能如何”整洁“的去实现。比如说我需要在多个类之间传递参数 所以我就把这个参数放在构造器参数集合中 一个一个往下传 但是因为在此过程中我们还要传别的参数 传着传着这参数就7,8个了 这谁顶的住啊。所以这种情况应该怎么办呢原创 2020-12-16 01:54:35 · 150 阅读 · 0 评论 -
LeetCode(面试)中写出干净的代码(小技巧合集)
COMMON TIPS FOR CLEAN CODE1 Calculate sum of a range quickly --using pre sum array2 Move in four directions for a matrix --注意边界 用4 way dfs3 Split string by multiple separators --?LeetCode: Brace Expansion4 Add a dummy tailing element to simplify code -原创 2020-12-16 01:53:10 · 363 阅读 · 0 评论 -
常见高频Behavior Questions分类
[Intro] Tell me about yourself?模板I’d love to tell you about myself.What part of my background or areas do you think it’s the most important for this job?I’d like to share more about those areas.So you can make a good decision about whether I would be原创 2020-12-15 01:31:35 · 552 阅读 · 0 评论 -
如何快速在LinkedIn上检索并申请相关的工作?
长时间不用 就会忘记在linkedin上面找工作需要注意的点。现在记下来以后每次要找工作就看看,提高一些效率。首先关键词搜索:new gradfresh gradjuniorsoftware development engineersoftware developer注意promote字样的首先快速浏览一下job description 看看有没有 需要美国公民或者需要clearance字样或者有没有 3-5年工作经验的字样 如果有 那么就不行如果没有这些字样 那么就点击apply,然后原创 2020-12-15 01:31:07 · 418 阅读 · 1 评论 -
Amazon‘s 14 Leadership Principles and Google‘s Core Values
原创 2020-12-16 01:47:42 · 522 阅读 · 0 评论 -
Java面试常考问题
重载和重写重载是发生在一个类中 方法名相同 但是参数不同(包括参数类型不同 或者个数不同 或者顺序不同 或者返回值不同 或者访问修饰符不同)重写发生在有继承关系的父子类中 方法名 参数列表必须相同。返回值的范围和抛出异常的范围均应该小于等于父类。如果父类方法访问修饰符为private则子类就不能重写该方法String, StringBuffer, StringBuilder的区别是什...原创 2020-12-11 08:08:56 · 139 阅读 · 0 评论 -
Dijkstra算法的本质是贪心(Greedy),还是动态规划(Dynamic Programming)?
refer: https://www.zhihu.com/question/22311234关于贪心和动态规划的区分 一直没想明白,所以借这个机会加深一下印象贪心是一种特殊的动态规划,因为动态规划的本质是独立的子问题 而贪心的本质是吗欸此找到当前的最优解(就是说我们有几个选择 我们不知道选择了一个之后会经历什么 我们只是选择当前最佳的选择)。贪心和动态规划不是互斥的。贪心更快,但是约束更强 适用范围更小。为什么知道这些那么重要?因为现在已经见过许许多多的问题了 很多问题都是最优化问题 比如求最大最原创 2020-11-30 03:19:22 · 2782 阅读 · 0 评论 -
如何判断某种语言是面向对象还是面向过程?
首先,什么是面向对象?一切事物皆对象,(tips: javascript 中除了两个特殊值undefined 和 null.)对象具有封装和继承特性对象与对象之间使用消息通信,各自存在信息隐藏。基于上面三点 我们可以说:C++ 是半面向对象半面向过程语言,因为,虽然其实现了类的封装、继承和多态,但存在非对象性质的全局函数和变量。Java、C# 倒是完全的面向对象语言,通过类的形式组织函数和变量,使之不能脱离对象存在。但这里函数本身是一个过程,只是依附在某个类上。总结:面向对象仅仅是一个概念原创 2020-11-27 23:34:03 · 1191 阅读 · 0 评论 -
What is the OOD/OOP?
OOP: object-oriented programming is about creating objects that contain both data and methods. And use these objects to do what we want to do. It actually make our program easy to maintain, modify and debug.There are four important principles in OOP: (AEI原创 2020-11-24 00:13:45 · 161 阅读 · 0 评论 -
What is Java Spring and what‘s the advantage of that?
Java spring is a framework that used to develop java application.according to Wikipedia:The Spring Framework is an application framework and inversion ofcontrol container for the Java platform. The framework’s core featurescan be used by any Java appl原创 2020-11-24 00:03:19 · 146 阅读 · 0 评论 -
面试问题:给你两件事情 先做哪个?(回答样例)
Well, in my point,they are both very important andactually they are not conflicting with each other.But if I have to choose one,I’d say maintaining a good relation with colleagueBecause getting my work nicely done islike basic foundationto gain resp原创 2020-12-19 07:14:06 · 292 阅读 · 0 评论 -
跟Manager写信请求延期
Dear Mr/Ms XXX,I’m Evan on project XXX, department of XXX. Unfortunately, we won’t be able to submit the project before due as promised.We are stuck with the last few steps since the data source os far more limited than we thought, and that dragged our p原创 2020-11-23 23:17:55 · 184 阅读 · 0 评论 -
面试到底该怎么沟通和做题?
面试中的“软实力” --沟通和小细节点原则:全程对已经问过面试官的问题 要记下来 不要问第二遍,就算要问第二遍 也是重复一下自己之前的理解 请面试官看一看对不对。首先上来自我介绍 然后扯简历 然后进入到做题环节。面试官给你题目:注意题目的各种形式 有的时候啥都不给你 让你从头写,甚至输入输出也不给你,只给你用文字描述的题目。读一下题目,读不读的懂没关系,要先找到输入的类型和输出的类型。然后就是理解题目的意思的部分,看完之后,自己总结一下,然后给面试官复述一遍,请他看看自己对这道题目的理解是否正确原创 2020-11-23 10:09:08 · 209 阅读 · 0 评论