查看: 2715| 回复: 3
跳转到指定楼层
上一主题 下一主题
收起左侧

[找工就业] 使命召唤公司take home exam

🔗
query | 只看该作者 |倒序浏览
全局:

2018(10-12月)-CS硕士+fresh grad 无实习或全职 | 网上海投| 码农类General实习@treyarch

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

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

x
// A struct for representing a 3D Vector with a constructor
struct Vector3. Waral dи,
{. From 1point 3acres bbs
        float x;
        float y;
        float z;

.1point3acres        Vector3( float xIn, float yIn, float zIn )
        {. ----
                x = xIn;
                y = yIn;.
                z = zIn;
        }
};.google  и
. 1point3acres.com
// Function Declarations
void TreyArch( int Trey, int Arch, int n );
void PlayerInfo( int stats );
bool CanHearSniper( Vector3 listenerPosition, Vector3 sniperPosition, Vector3 sniperForward, float distance, float cone );




// Main
// Calls functions with sample inputs
// No need to modify this function
int main()
{
        TreyArch( 3, 5, 15 );
        PlayerInfo( 3411782069 );
        CanHearSniper( Vector3( 0.0f, 0.0f, 0.0f ), Vector3( 1000.0f, 0.0f, 0.0f ), Vector3( -1.0f, 0.0f, 0.0f ), 1100.7f, 10 );
        return 0;
}


/////////////////////////////////////
// PLACE ALL CODE BELOW THIS BLOCK //
/////////////////////////////////////


// Problem 1

// TreyArch
// For each number starting from 1 and going up to n, this function prints the following
// "Trey" - If the number is a multiple of Trey OR contains the digit Trey. 1point3acres
// "Arch" - If the number is a multiple of Arch OR contains the digit Arch
// "TreyArch" - If the number falls into both categories above
// The number itself if none of the rules above hold for that number
// n - the number up to which this function prints
// Trey - first digit 3 - 9
// Arch - second digit 3 - 9

/*
Sample Input. 1point3acres
-----------------------------------------------------------
3 5 15

Sample Output
-----------------------------------------------------------
1 2 Trey 4 Arch Trey 7 8 Trey Arch 11 Trey Trey 14 TreyArch
*/

void TreyArch( int Trey, int Arch, int n ). 1point3acres.com
{

}

// Time:

. Χ


// Problem 2
. ----
// PlayerInfo
// Prints the player info stored inside the stats passed in
// From least significant to most significant bits:. 1point3acres
// Bits 0 - 7 contain the players kills                                                                                                                        Print Number
// Bits 8 - 15 contain the players deaths                                                                                                                Print Number
// Bits 16 - 17 contain the players weapon class                                                                                                Print "Assault" "SMG" "LMG" or "Sniper"
// Bit 18 is handedness: 1 for right, 0 for left                                                                                                Print "Right Hand" or "Left Hand"
// Bits 19 - 22 contain the players setting for vertical look sensitivity                                                Print Number
// Bits 23 - 26 contain the players setting for horizontal look sensitivity                                                Print Number.--
// Bits 27 - 30 contain the players setting for auto-aim sensitivity                                                        Print Number
// Bit 31 is if the player is getting an internship at Treyarch: 1 for yes, 0 for no                        Print "Yes" or "No"
// stats - the stats blob passed in
-baidu 1point3acres
/*
Sample Input
-----------------------------------------------------------. From 1point 3acres bbs
3411782069

Sample Output
-----------------------------------------------------------. 1point3acres
Kills: 181
Deaths: 169
Class: Sniper
Hand: Left Hand ..
Vertical Look Sensitivity: 11
Horizontal Look Sensitivity: 6
Auto-Aim Sensitivity: 9
Internship: Yes
*/

enum PlayerWeaponClass
{-baidu 1point3acres
        PWD_ASSAULT,
        PWD_SMG,
        PWD_LMG,
        PWD_SNIPER,
        PWD_COUNT,
};

void PlayerInfo( int stats )
{

}

// Time:
. Χ



// Problem 3

// CanHearSniper
// Task - Complete the function to determine if a player can hear a sniper's gunfire
// Prints true or false for debug purposes. .и

// listenerPosition - The 3d position of the player listening. Χ
// sniperPosition - The 3d world position of the sniper
// sniperForward - The normalized vector of the direction that the sniper is firing in.--
// distance - the max distance that the sniper can be heard from
// cone - the max angle in DEGREES that the sniper's gunfire can be heard in ( 0 - 360 )

/*. .и
Sample Input
-----------------------------------------------------------
Vector3( 0.0f, 0.0f, 0.0f ), Vector3( 1000.0f, 0.0f, 0.0f ), Vector3( -1.0f, 0.0f, 0.0f ), 1100.7f, 10. 1point 3acres

Sample Output
-----------------------------------------------------------
true.1point3acres
*/

bool CanHearSniper( Vector3 listenerPosition, Vector3 sniperPosition, Vector3 sniperForward, float distance, float cone ). 1point 3 acres
{
        return false;
}

// Time:

评分

参与人数 3大米 +61 收起 理由
teleport + 1 赞一个
一亩三分地再见 + 10 给你点个赞!
爱丽丝和鲍勃 + 50

查看全部评分


上一篇:发一个ibm research intern过经 求大米
下一篇:马克分享一下第二次找工作的经验
🔗
Jdawg 2018-11-18 10:10:48 | 只看该作者
全局:
这是什么职位啊,官网上面的职位好像很少
回复

使用道具 举报

🔗
 楼主| query 2018-11-18 10:12:18 | 只看该作者
全局:
Jdawg 发表于 2018-11-18 10:10
这是什么职位啊,官网上面的职位好像很少

sde intern
回复

使用道具 举报

🔗
Jdawg 2018-11-18 10:37:39 | 只看该作者
全局:

好嘞,谢谢楼主!
回复

使用道具 举报

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

本版积分规则

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