专栏名称: 大数据应用
数据应用学院被评为2016北美Top Data Camp, 是最专业一站式数据科学咨询服务机构,你的数据科学求职咨询专家!
目录
相关文章推荐
数据派THU  ·  NeurIPS 2024 | ... ·  13 小时前  
江西工信  ·  赣州市南康区:企业数字化转型按下加速键 ·  18 小时前  
江西工信  ·  赣州市南康区:企业数字化转型按下加速键 ·  18 小时前  
黑马程序员  ·  喜报!应届生均薪破万,最高薪资24000元! ·  昨天  
黑马程序员  ·  喜报!应届生均薪破万,最高薪资24000元! ·  昨天  
CDA数据分析师  ·  Deepseek来袭,数据分析师会失业吗? ·  3 天前  
艺恩数据  ·  新春贺岁,福满人间! ·  2 周前  
51好读  ›  专栏  ›  大数据应用

每日一练 | Data Scientist & Business Analyst & Leetcode 面试题 302

大数据应用  · 公众号  · 大数据  · 2018-02-28 09:59

正文

自2017年6月15日起,数据应用学院与你一起温习数据科学(DS)和商业分析(BA)领域常见的面试问题。 从2017年10月4号起,每天再为大家分享一道Leetcode算法题。

希望积极寻求相关领域工作的你每天关注我们的问题并且与我们一起思考,我们将会在第二天给出答案。

Day 202

DS Interview Questions

Explain what is collaborative filtering?

BA Interview Questions


R language:

Using the following variable:

a=15:10

b=20:15


type a while () loop that computes a vector x=225 224 221 216 209 200,such that

x[1]=a[1]*b[6]

x[2]=a[2]*b[5]

x[3]=a[3]*b[5]

.

.

x[6]=a[6]*b[1]


LeetCode Questions

  • Description:

    • Given two integers n and k, return all possible combinations of k numbers out of 1 … n.

  • Input: n = 4 and k = 2

  • Output: [[2,4],[3,4],[2,3],[1,2],[1,3],[1,4],]

欲知答案如何?请见下期分解!

Day 201 答案揭晓

DS Interview Questions

Explain what is the criteria for a good data model?


Criteria for a good data model includes

  • It can be easily consumed

  • Large data changes in a good model should be scalable

  • It should provide predictable performance

  • A good model can adapt to changes in requirements


BA Interview Questions


Using the following variables:

x=c(2,4)

# type a while () loop that adds even numbers to x,

# while the length of x is less than 12.

# For example, in the first iteration you get x = 2,4,6, and the third x =2,4,6,8.



a=6

while(length(x)<12){

x

a=a+2

}

x



Leetcode Questions

Description:

    Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, white and blue.

    Here, we will use the integers 0, 1, and 2 to represent the color red, white, and blue respectively

  • Input: [1,2,2,1,1,0]

  • Output:[0,1,1,1,2,2]

  • Assumptions:

    • You are not suppose to use the library’s sort function for this problem.









请到「今天看啥」查看全文