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

Mathworks 电面

全局:

2016(1-3月) 码农类General 硕士 全职@zillow - 校园招聘会 - 技术电面  | | Other | 应届毕业生

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

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

x

上周的OA做的不好,但是还是收到电面了
细节和网上提到的差不多,分3个section,只需要选两种语言,其他的她都默认我oop和probility
三姐语速略快,好几个问题没听懂,最后她打出来给我看了
一共50分钟左右,感觉
您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限 或 查看其他获取积分的方式
Unlock interview details and practice with AI
Popular Interview Questions from Top Companies
ge
-3, -5 -8....the 101th number
4 face dice and 6 face dice, probility of same number

网上的面筋整理,晚点再回来写

评分

参与人数 1大米 +6 收起 理由
zzzShxin + 6 很有用的信息!

查看全部评分


上一篇:新鲜出炉的Amazon OA1 面经 3.3due
下一篇:个人吐血总结Linkedin系统设计题,全是地里的资源,其他公司一样参考
推荐
 楼主| aojing 2016-3-8 05:20:55 | 只看该作者
全局:
您好!
本帖隐藏的内容需要积分高于 100 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 100 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限 或 查看其他获取积分的方式
Unlock interview details and practice with AI
Popular Interview Questions from Top Companies
回复

使用道具 举报

🔗
chuweihan 2016-3-6 04:27:00 | 只看该作者
全局:
楼主求下整理的网上面经 多谢啦
回复

使用道具 举报

🔗
qiuqiyuan 2016-3-8 04:37:11 | 只看该作者
全局:
求楼主整理的面经。
回复

使用道具 举报

🔗
 楼主| aojing 2016-3-8 05:13:42 | 只看该作者
全局:
Java & oop

1. what is oop? what are the advantages of oop?

2. how to import packages in java? what if you import a package twice?

3. what is polymorphism? have you ever used polymorphsim in a project? Describe it.

4. how to implement a queue using stacks?

5. what is java generics?
Java Generic methods and generic classes enable programmers to specify, with a single method declaration, a set of related methods or, with a single class declaration, a set of related types, respectively.
A generic class is defined with the following format:
class name<T1, T2, ..., Tn> { /* ... */ }

Generics also provide compile-time type safety that allows programmers to catch invalid types at compile time.

6. what is the difference between abstract class and interface?

abstract Classes        Interfaces

7. difference between final and finally
8. what is mutex?
When I am having a big heated discussion at work, I use a rubber chicken which I keep in my desk for just such occasions. The person holding the chicken is the only person who is allowed to talk. If you don't hold the chicken you cannot speak. You can only indicate that you want the chicken and wait until you get it before you speak. Once you have finished speaking, you can hand the chicken back to the moderator who will hand it to the next person to speak. This ensures that people do not speak over each other, and also have their own space to talk.
Replace Chicken with Mutex and person with thread and you basically have the concept of a mutex.
A Mutex is a mutually exclusive flag. It acts as a gate keeper to a section of code allowing one thread in and blocking access to all others. This ensures that the code being controled will only be hit by a single thread at a time. Just be sure to release the mutex when you are done

        Mutex is basically mutual exclusion. Only one thread can acquire the resource at once. When one thread acquires the resource, no other thread is allowed to acquire the resource until the thread owning the resource releases. All threads waiting for acquiring resource would be blocked.
Semaphore is used to control the number of threads executing. There will be fixed set of resources. The resource count will gets decremented every time when a thread owns the same. When the semaphore count reaches 0 then no other threads are allowed to acquire the resource. The threads get blocked till other threads owning resource releases.
In short, the main difference is how many threads are allowed to acquire the resource at once ?
•        Mutex --its ONE.
•        Semaphore -- its DEFINED_COUNT, ( as many as semaphore count)


9. difference between int and integer in java

10. is java pass by reference or pass by value?
By value
11. can java garbage collection manually? how?
Yes, but not recommended. By call system.gc() which will call runtime.gc()
12. difference between JDK and JRE.
JRE: Java Runtime Environment. It is basically the Java Virtual Machine where your Java programs run on. It also includes browser plugins for Applet execution.
JDK: It's the full featured Software Development Kit for Java, including JRE, and the compilers and tools (like JavaDoc, and Java Debugger) to create and compile programs.
Usually, when you only care about running Java programs on your browser or computer you will only install JRE. It's all you need. On the other hand, if you are planning to do some Java programming, you will also need JDK.

13. what is static? 然后写了如下代码让我说输出是什么
static members belong to the class instead of a specific instance.
It means that only one instance of a static field exists[1] even if you create a million instances of the class or you don't create any. It will be shared by all instances.
Since static methods also do not belong to a specific instance, they can't refer to instance members (how would you know which instance Hello class you want to refer to?). staticmembers can only refer to static members. Instance members can, of course access staticmembers.

void func() {
static int x = 0;
printf(“%d\n”, x);
x = x + 1;
}
int main(int argc, char *argv[]) {
func();
func();
func();
return 0;
}
14. 关于java里的super关键字,可惜我记不太清楚了,大概写一下,如果我写错了,希望大家斧正
super class A{
foo();
}
class B extends A{. 1point3acres.com/bbs
foo();
bar();
}
int main{
A var = new B();
var.foo();
var.bar();
}
问这个foo和bar调用的是A的还是B的
15.Compare the time complexity of insertion and deletion between dynamic array and linkedlist. visit 1point3acres.com for more.
16. what is hashtable? what is the potential issue of hashtable?
Fixed size table of array
Constant time insertion

这个楼主没懂,就问了一句,他引导我从“garbage collection”上面去考虑,可惜楼主还是没想到
面完之后查了一下,似乎是想考hashtable当key被回收而value没有被回收的时候,会发生内存泄露。
17.difference between hashtable and hashmap in java
1.        The HashMap class is roughly equivalent to Hashtable, except that it is non synchronized and permits nulls. (HashMap allows null values as key and value whereas Hashtable doesn't allow nulls).
2.        HashMap does not guarantee that the order of the map will remain constant over time.
3.        HashMap is non synchronized whereas Hashtable is synchronized.
4.        1) HashMap's iterators are NOT fail-safe. They are fail-fast. There is a huge difference in meaning between those two terms. 2) There is no set operation on a HashMap. 3) The put(...) operation won't throwIllegalArgumentException if there was a previous change. 4) The fail-fast behaviour of HashMap alsooccurs if you change a mapping. 5) The fail-fast behaviour is guaranteed. (What is not guaranteed is the behaviour of a HashTable if you make a concurrent modification. The actual behaviour is ... unpredictable.)


回复

使用道具 举报

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

使用道具 举报

🔗
qiuqiyuan 2016-3-8 05:28:56 | 只看该作者
全局:
mutex的解释用rubber duck这个例子太形象了,一下就说清楚了。
回复

使用道具 举报

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

本版积分规则

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