近期论坛无法登录的解决方案


一亩三分地论坛

 找回密码
 获取更多干活,快来注册

一亩三分地官方iOS手机应用下载
查看: 1039|回复: 2
收起左侧

Mathwork technical phone interview

[复制链接] |试试Instant~ |关注本帖
slayer 发表于 2015-5-15 02:11:51 | 显示全部楼层 |阅读模式

2015(4-6月) 码农类 硕士 全职@Mathwork - 网上海投 - 技术电面 |Otherfresh grad应届毕业生

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

您需要 登录 才可以下载或查看,没有帐号?获取更多干活,快来注册

x
热乎乎的mathwork电面~~~~~lz是cs硕士,所以就是选三门语言和编程概念,全程没有算法,数学and其他==好诡异,不过oo问题什么的还是蛮基本蛮简单的,把我总结的内容做成附件啦~~基本上所有问题都有了~~
面试官是个三姐姐,感觉对话什么的倒是都没问题,提到cs的术语什么的交流还是有点问题的,有的问题让她重复好几遍,有些耽误时间了,刚开始那个webex的插件也搞了好久==
求好运求onsite求大米咯~~~~
lz选的语言是java c/c++
把代码贴出来咯,基本上都是问输出是什么. visit 1point3acres.com for more.
s1 = new String("abc");. 1point3acres.com/bbs
s2 = new String("abc");
if(s1.equals(s2))
. 1point 3acres 璁哄潧     System.out.println("s1.equals(s2) is TRUE");
else. 1point 3acres 璁哄潧
     System.out.println("s1.equals(s2) is FALSE");
if(s1==s2)
     System.out.printlln("s1==s2 is TRUE");
   else
     System.out.println("s1==s2 is FALSE");


#include <iostream>
using namespace std;
class Student {. more info on 1point3acres.com
    private:
        char *name;
};
int main()
{
   Student *s = new Student();
   Student s1 = *s;
   Student s2;
   s2 = s1;
   delete s;.1point3acres缃

   return 0;
}


#include <iostream>
using std::cout;
using std::endl;-google 1point3acres

class Complex {
  private:
    int real;
    int imag;. 1point3acres.com/bbs
  public:
    Complex(int r, int i) {real = r, imag = i;}. from: 1point3acres.com/bbs
    int getReal() const { return real; }
    int getImag() const { return imag; }
    void setReal(int aReal) { real = aReal; }
    void setImag(int aImag) { imag = aImag; }
};


int main (int argc, char **argv) {
    Complex A(5, 2);. From 1point 3acres bbs
    Complex B(3, 1);
    Complex C = A + B;
    cout << "C is " << C.getReal() << " + " << C.getImag() << "i";. from: 1point3acres.com/bbs
    cout << endl; 鏉ユ簮涓浜.涓夊垎鍦拌鍧.
    return 0;
}. visit 1point3acres.com for more.


#include <iostream>
using std::cout;. from: 1point3acres.com/bbs
using std::endl;. 鍥磋鎴戜滑@1point 3 acres
class Account { 鏉ユ簮涓浜.涓夊垎鍦拌鍧.
private:
    double balance;
public:. 鐣欏鐢宠璁哄潧-涓浜╀笁鍒嗗湴
   Account( double bal ) {
       cout<<"Creating an account with starting balance: "<< bal<<endl;. visit 1point3acres.com for more.
       balance = bal;
       }
   virtual double GetBalance();. from: 1point3acres.com/bbs
   virtual void PrintBalance()=0;
};
int main(int argc, char* argv[]) {
    Account *savings = new Account(100.0);
    return 0;
}. 1point 3acres 璁哄潧

. more info on 1point3acres.com
#include <iostream>
using std::cout;
using std::endl;
class A {. 鐣欏鐢宠璁哄潧-涓浜╀笁鍒嗗湴
   public:
     ~A() {
        cout << "A" << endl;
      } 鏉ユ簮涓浜.涓夊垎鍦拌鍧.
};
class B : public A{
   public :
      ~B() {
        cout << "B" << endl;
      }
};


int main (int argc, char **argv) {. 鐗涗汉浜戦泦,涓浜╀笁鍒嗗湴
   A *ptr = new B();
   delete ptr;
   return 0;
}

.1point3acres缃
#include <stdio.h>
#define a 100
main()
{     
     const int b = 100;
     printf(“Hello World\n”);
}


main()
{. more info on 1point3acres.com
     const float pi = 3.14;. visit 1point3acres.com for more.
     pi = 5.40;
     printf(‘%f’,&pi);. visit 1point3acres.com for more.
}
. 鐣欏鐢宠璁哄潧-涓浜╀笁鍒嗗湴

main.鏈枃鍘熷垱鑷1point3acres璁哄潧
{. From 1point 3acres bbs
       add_numbers(1,3);
}
. visit 1point3acres.com for more.int add_numbers(int a,int b)
{   
      int *sum = (int *)malloc(16);
      sum = a+b;
      return sum;
}


void func() {. From 1point 3acres bbs
        static int x = 0; . From 1point 3acres bbs
        printf("%d\n", x);
        x = x + 1;
}. visit 1point3acres.com for more.

int main(int argc, char *argv[]) {
        func(); -google 1point3acres
        func();
        func(); . Waral 鍗氬鏈夋洿澶氭枃绔,
        return 0;
}


#include<stdio.h>
int main(void)
{
    char *ptr = "Linux";
    printf("\n [%c] \n",*ptr++);
    printf("\n [%c] \n",*ptr);
-google 1point3acres    return 0;. Waral 鍗氬鏈夋洿澶氭枃绔,
}

. from: 1point3acres.com/bbs

mathwork phone.pdf

308.71 KB, 下载次数: 60, 下载积分: 大米 -1 升

评分

2

查看全部评分

tailofjune 发表于 2015-5-15 14:21:54 | 显示全部楼层
关注一亩三分地公众号:
Warald_一亩三分地
LZ你是不是代码没贴全啊?有的题也没输出啊.这些真的能都编译通过吗...
回复 支持 反对

使用道具 举报

 楼主| slayer 发表于 2015-5-16 04:09:35 | 显示全部楼层
关注一亩三分地微博:
Warald
tailofjune 发表于 2015-5-15 14:21. from: 1point3acres.com/bbs
LZ你是不是代码没贴全啊?有的题也没输出啊.这些真的能都编译通过吗...
. visit 1point3acres.com for more.
贴全了,有的就是问编译能不能通过,为什么
回复 支持 反对

使用道具 举报

本版积分规则

关闭

一亩三分地推荐上一条 /5 下一条

手机版|小黑屋|一亩三分地论坛声明

custom counter

GMT+8, 2017-6-24 11:51

Powered by Discuz! X3

© 2001-2013 Comsenz Inc. Design By HUXTeam

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