注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
新鲜的Microsoft HR 30mins面试
全都是behavioural的问题。地里的面经都包括了,不过为了节省大家的时候,我就把我整理的都放上来,给大家用
########################## 以下是我整理的Microsoft的基本上所有问题 ######################
第一题的话,比如s1 = "abcabcabc", s2 = "abc",那么return [0, 3, 6] 因为s2出现在第0,第3,和第6的位置。
特殊情况(overlap的话)s1 = "aaaaa", s2 = "aa", 那么return [0, 1, 2, 3] 因为s2出现在第0,1,2,3的位置。
LC240
1 说一个你根据顾客反馈更改需求的经历
水质网站,(1)marker要bouce来展示某一个特定的用户 (2)seasonal statistical data (3)button to print all bad quality users
2 自己做一个项目时候的整体流程规划
(1)analyze the program i need to implement, find the main point and design the layout (2)seperate the program into different small subtasks
(3)For each subtasks figure out the skills we need to use and problems we may face in the future (4)Finish each subtasks, and do the test for them (5)monitor the progress of whole program
3 如何面对新的技术或问题
If the skill is useful for my job, i need to learn it as soon as possible, if not highly reated with my job, but i am interested in it, i can learn it in my spare time,maybe useful in the future. For the question, i will try to figure it out by myself first, if i can't slove, i will ask my colleague who is professional for this problem.
4 如何处理坑队友的问题
first I will talk with him,figure out if it’s because any kind of problem he met or he just do not have motivation. I will try to help him in those fields that I know and help him to find a easier way to solve the problem, or I will find some other who is professional in his problem. And if they still not have motivation for job, i will report this for our group leader, because we are in a group, we need to contribute ourself to the group.
5 自己感觉deadline前不能完成怎么办?
(1)try my best to implement the project (2)ask somebody else if they can help me (3)send an email to my leader to illustrate my condition
###################### Polymorphism(多态) ###################
Polymorphism( is one of the OOPs feature that allows us to perform a single action in different ways. 2 kinds, first Override(重写:方法,参数名都要相同), second overload(重载:方法名相同,参数名可以不同).use of a single symbol to represent multiple different types
Animal cat dog
前提:
1.要有继承关系
2.子类要重写父类的方法
3.父类引用指向子类对像 parent class refernece must point to child class object
那么多态有什么弊端呢?有的,即多态后不能使用子类特有的属性和方法
##################### 讲递归 #####################
Think about the Russian Doll, you need to get the inner doll, so the thing we do is keep opening until the current doll cannot be open. So this is what recursion do.
查字典。我们使用的词典,本身就是递归,为了解释一个词,需要使用更多的词。当你查一个词,发现这个词的解释中某个词仍然不懂,于是你开始查这第二个词,可惜,第二个词里仍然有不懂的词,于是查第三个词,这样查下去,直到有一个词的解释是你完全能看懂的,那么递归走到了尽头,然后你开始后退,逐个明白之前查过的每一个词,最终,你明白了最开始那个词的意思。。。
################# Java与Python比较 ##################
1. the way that two languags handle variables. Java 是静态类型(statically typed),Python 是动态类型(dynamiclly typed)
静态变量: not allow you to change the type later in the program
动态变量: allows you to change the type of a variable, for example you can replace an integer with a string,.
2. JAVA 的类型要声明(Declare)Declare the type of parameter in Java , Python 的类型不需要。
3.How to seperate code?
Java: curly braces to define the beginning and end of each function and class definition
Python: uses indentation to separate code into blocks
4. portability(可移植性)
Java: Java can be used to create platform-independent applications (deivece has JVM can run java applications, and most devices already have the Java virtual machine installed)
Python: If you want to run Python programs you need a compiler that can turn Python code into code that your particular operating system can understand it
Java比Python稳定
Java是静态类型语言,可规范性更强
Java更适合传统意义上的企业级开发
Java开发风险小,解决方案多,可维护性高
Python
everything is object
Java
except basic type int float ….
parse in semicolon(分号) big clause(brace), python parse in indentation
################# Why Microsoft #################
Microsoft is the World’s biggest organization who is the biggest giant of IT company.
I have many friends in Microsoft. They told me that the working environment is great and colleague are nice and very intelligent people. For me, my computer operation system is windows.
Microsoft is a company who is developing latest technology and others are adapting it so there are vast opportunities in career growth.
Microsoft acquires “semantic machine” Also of course GitHub, the word biggest code base
######################################################结束 #####################################
希望能帮到大家,保佑我第一个onsite,跪求给点大米,好多帖子看不到,哈哈!!!!
|