回复: 28
跳转到指定楼层
上一主题 下一主题
收起左侧

Indeed/确实面经--Karat面试

   
全局:

2020(7-9月) 码农类General 硕士 全职@indeed - 内推 - 技术电面  | | Pass | 在职跳槽

注册一亩三分地论坛,查看更多干货!

您需要 登录 才可以下载或查看附件。没有帐号?注册账号

x
本帖最后由 kuailezhish 于 2020-9-18 09:37 编辑

前两天刚参加完Indeed Karat的电面,确实问的大多数都是地里面经的题目,楼主也来分享一下面试准备的题,希望能够帮助到大家,以及楼主新人很多帖子看不了,请大家大米支持下哈!
流程:
* Self-Introduction (~ 1 min)
* Q & A (~ 10 min) (choose 2 fields, about 3 problems in every field)
* Coding (2 ~ 3 problems) with time and space complexity analysis

Q & A 环节: (楼主投的是后端工程师,给的这些领域,地里有小伙伴说可能还有其他的类型?)
1. Web application
    Building user interfaces for web services and sites
2. Production issues
    Diagnosing problems with production services
3. System internals
    How computers manage and allocate resources like CPU and memory
4.OOP
    Best practices for building classes and systems of classes
5.Testing
    Validating code and related concerns
五选二,楼主之前准备的是System internals和OOP,总体上就是根据自己的准备知识,尽量说就可以了。
贴一下楼主尽可能整理的问题和答案(不一定很准确,大家参考着自己习惯的知识上靠吧),希望能够帮助大家:
System Internals:
1 Graph(CPU usage, RAM usage), 大概就是随着time,CPU资源消耗不变, increase; How to detect; What could cause that; How to resolve?
maybe memory leak, try to find
2 Memory Leak, how to solve?

Memory Leak: some objects are referenced, but not used
    Symptoms of a Memory leak: Works fast at first, but slows over time; OutOfMemoryError after runing; There are occasionally crashes in the applications.
    Why
       1. Memory Leak Through static Fields
       2. Through Unclosed Resources
       3. Improper equals() and hashCode() Implementations
    Handle:
       1. Enable Profiling: Java profilers are tools that monitor and diagnose the memory leaks through the application.
       2. Verbose Garbage Collection: enable verbose garbage collection to track detailed trace of GC
       3. use tools like Eclipse to show warnings and errors whenever it encounters obvious cases of memory leaks
       4. use benchmarks to measure and analyze the Java code's performance after changed code.
       5. Code Reviews
3 Connection Pool Timeout

您好!
本帖隐藏的内容需要积分高于 150 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 150 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限查看其他获取积分的方式
Unlock interview details and practice with AI
Curated Interview Questions from Top Companies

4 Thread Exhausion

您好!
本帖隐藏的内容需要积分高于 150 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 150 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限查看其他获取积分的方式
Unlock interview details and practice with AI
Curated Interview Questions from Top Companies

5 How do you know if you can handle 1k requests per second (now it's 1 request per second)
您好!
本帖隐藏的内容需要积分高于 150 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 150 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限查看其他获取积分的方式
Unlock interview details and practice with AI
Curated Interview Questions from Top Companies

6 操作系统中进程和线程的区别。
Both processes and threads are independent sequences of execution. The typical difference is that threads (of the same process) run in a shared memory space, while processes run in separate memory spaces.
Each process provides the resources needed to execute a program. Each process is started with a single thread, often called the primary thread, but can create additional threads from any of its threads.
A thread is an entity within a process that can be scheduled for execution.
7 What is garbage collection
Once an object is no longer referenced and therefore is not reachable by the application code, the garbage collector removes it and reclaims the unused memory.
8 stack vs heap
您好!
本帖隐藏的内容需要积分高于 150 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 150 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限查看其他获取积分的方式
Unlock interview details and practice with AI
Curated Interview Questions from Top Companies

9 How to communicate between threads? How to communicate between processes?

您好!
本帖隐藏的内容需要积分高于 150 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 150 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限查看其他获取积分的方式
Unlock interview details and practice with AI
Curated Interview Questions from Top Companies

10 What is the difference between garbage collection and 传统的内存管理方法?

您好!
本帖隐藏的内容需要积分高于 150 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 150 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限查看其他获取积分的方式
Unlock interview details and practice with AI
Curated Interview Questions from Top Companies

11 给一个场景不太适合使用garbage collection模型去管理内存
您好!
本帖隐藏的内容需要积分高于 150 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 150 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限查看其他获取积分的方式
Unlock interview details and practice with AI
Curated Interview Questions from Top Companies


Object-oriented design:
1. 简单描述下composition 跟inheritance 以及他们的区别。
Inheritance is an "is-a" relationship. Composition is a "has-a" relationship.
Composition and Inheritance both provide code reusability by relating class.
Inheritance derives one class from another one class, composition can have an instance of another class as a field.
2.What is dependency injection(DI)? 对管理软件有什么好处?

您好!
本帖隐藏的内容需要积分高于 150 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 150 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限查看其他获取积分的方式
Unlock interview details and practice with AI
Curated Interview Questions from Top Companies

3.Polymorphism
The word polymorphism means having many forms. It describes the concept that different classes can be used with the same interface.
Advantages: It helps the programmer to reuse the codes
Disadvantages: Polymorphism reduces the readability of the program and runtime polymorphism can lead to the performance issue as machine needs to decide which method or variable to invoke
4.what is the most important object oriented programming principle for complex system
Four basic concept:
Abstraction: shows only the necessary details to the client of an object
Encapsulation: process of enclosing one or more items within a physical or logical package
Inheritance: allows us to define a class in terms of another class
Polymorphism: an instance of something in various forms
The five principles are as follows:
* S – Single Responsibility Principle (SRP): “A class should have one, and only one, reason to change.”
* O – Open Closed Principle (OCP): “You should be able to extend a classes behavior, without modifying.”
* L – Liskov Substitution Principle (LSP): “Derived classes must be substitutable for their base classes.”
* I – Interface Segregation Principle (ISP): “Clients should not be forced to depend upon interfaces that they don't use.”
* D – Dependency Inversion Principle (DIP): “Depend on abstraction, not on concretions.”
5.如果向Collection framework里面加入一个新的class. 你打算加上哪些文档?
您好!
本帖隐藏的内容需要积分高于 150 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 150 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限查看其他获取积分的方式
Unlock interview details and practice with AI
Curated Interview Questions from Top Companies

6.公司实现了一个数据结构,你觉得documentation里头要写啥比较好,随便讲

您好!
本帖隐藏的内容需要积分高于 150 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 150 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限查看其他获取积分的方式
Unlock interview details and practice with AI
Curated Interview Questions from Top Companies

7.undo/redo , which data structure is good for this?
stack
8.What is the main difference between overloading and overriding?
Overloading is static Binding, whereas Overriding is dynamic Binding. Overloading is nothing but the same method with different arguments, and it may or may not return the equal value in the same class itself.
Overriding is the same method names with the same arguments and return types associated with the class and its child class.
9. What is Static Binding and Dynamic Binding?
Binding is nothing but the association of a name with the class. Static Binding is a binding in which name can be associated with the class during compilation time, and it is also called as early Binding.
Dynamic Binding is a binding in which name can be associated with the class during execution time, and it is also called as Late Binding.
10.When would you use composition and inheritance over the other, what are some of the tradeoffs?

您好!
本帖隐藏的内容需要积分高于 150 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 150 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限查看其他获取积分的方式
Unlock interview details and practice with AI
Curated Interview Questions from Top Companies


编程题:
楼主面的是Calculator,大家可以参考地里的面经资料寻找答案,或者自己练一下
1) 给一个String只有数字,+和-,比如43+2-2,返回计算结果
2) 第一题的follow up,这次加了括号,比如(33-3)+((8-3)-(3-88)),返回计算结果 (LT 224)
3) 第二题的follow up,这次String里会有variable,比如(apple-4)+orange-(banana+3),然后给一个map,{{banana: 4}, {apple : 9}},不是所有的variable都有值,这个例子就会返回5+orange-7。

最后祝大家面试顺利哈!

评分

参与人数 28大米 +41 收起 理由
elfredayao + 1 很有用的信息!
gogogogo + 2 给你点个赞!
yezittz1 + 1 给你点个赞!
Neroldy + 1 很有用的信息!
Yimusanfendiac + 1 很有用的信息!

查看全部评分


上一篇:9.17 亚麻NG OA1
下一篇:ebay家新鲜oa

本帖被以下淘专辑推荐:

  • · Indeed|主题: 76, 订阅: 1
推荐
美帝马甲 2020-11-20 03:17:26 | 只看该作者
全局:
karat面,前面基础题就是走个过场。
最重要的是coding部分,一定要做出2题,要有通过编译,无错误,能出正确结果的code.
如果2题面官run你的code能打印结果,你就过了。否则你本次就挂了
回复

使用道具 举报

推荐
 楼主| kuailezhish 2020-10-15 13:24:44 | 只看该作者
全局:
mchzh 发表于 2020-10-15 12:49
楼主实力非常高,前面的qa完了后时间也没多少了,还能写完三个代码,厉害

相信自己,你也可以的!很感谢地里小伙伴们的分享,能够知道一些以往的面试题,所以面完后也来分享经验,大家互帮互助,整体就会变得越来越强!
回复

使用道具 举报

全局:
kuailezhish 发表于 2020-10-27 21:37
大概是10min的基础知识部分吧,我觉得以时间为限制标准而不是问题数量,因为问我的问题每项都大于3个了( ...

谢谢楼主!!的确是按照时间来安排的,今天我的面试官说时间没到,让我再多说点
回复

使用道具 举报

🔗
rawhostel8 2020-10-14 11:29:44 | 只看该作者
全局:
请问lz是karat面的么?
回复

使用道具 举报

🔗
 楼主| kuailezhish 2020-10-14 18:07:20 | 只看该作者
全局:
rawhostel8 发表于 2020-10-14 11:29
请问lz是karat面的么?

是啊,标题里面写了
回复

使用道具 举报

🔗
mchzh 2020-10-15 01:59:06 | 只看该作者
全局:
楼主的三个calculator都做完了?
回复

使用道具 举报

🔗
 楼主| kuailezhish 2020-10-15 11:21:32 | 只看该作者
全局:
您好!
本帖隐藏的内容需要积分高于 100 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 100 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限查看其他获取积分的方式
Unlock interview details and practice with AI
Curated Interview Questions from Top Companies
回复

使用道具 举报

🔗
mchzh 2020-10-15 12:49:15 | 只看该作者
全局:
kuailezhish 发表于 2020-10-15 11:21
第一个和第二个因为代码比较短,我快速写完了,没有bug,跑出来也都对,然后就和面试官开始沟通第三个, ...

楼主实力非常高,前面的qa完了后时间也没多少了,还能写完三个代码,厉害
回复

使用道具 举报

🔗
mchzh 2020-10-15 14:09:41 | 只看该作者
全局:
kuailezhish 发表于 2020-10-15 13:24
相信自己,你也可以的!很感谢地里小伙伴们的分享,能够知道一些以往的面试题,所以面完后也来分享经验, ...

嗯,能碰到面经题心里肯定不慌张,面试的时候就怕心态崩
回复

使用道具 举报

🔗
mchzh 2020-10-16 01:02:56 | 只看该作者
全局:
mchzh 发表于 2020-10-15 14:09
嗯,能碰到面经题心里肯定不慌张,面试的时候就怕心态崩

请问你现在怎么准备onsite,可以加联系一下吗?我用狗家后缀邮箱:caizhaoabc
回复

使用道具 举报

🔗
zhangyilin_zulu 2020-10-27 13:35:17 | 只看该作者
全局:
求问楼主基础知识部分是问够了10min就不问了,还是问满3个问题为止呀
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册账号
隐私提醒:
  • ☑ 禁止发布广告,拉群,贴个人联系方式:找人请去🔗同学同事飞友,拉群请去🔗拉群结伴,广告请去🔗跳蚤市场,和 🔗租房广告|找室友
  • ☑ 论坛内容在发帖 30 分钟内可以编辑,过后则不能删帖。为防止被骚扰甚至人肉,不要公开留微信等联系方式,如有需求请以论坛私信方式发送。
  • ☑ 干货版块可免费使用 🔗超级匿名:面经(美国面经、中国面经、数科面经、PM面经),抖包袱(美国、中国)和录取汇报、定位选校版
  • ☑ 查阅全站 🔗各种匿名方法

本版积分规则

>
快速回复 返回顶部 返回列表