专栏名称: 大数据应用
数据应用学院被评为2016北美Top Data Camp, 是最专业一站式数据科学咨询服务机构,你的数据科学求职咨询专家!
目录
相关文章推荐
数据派THU  ·  NeurIPS 2024 | ... ·  12 小时前  
CDA数据分析师  ·  Deepseek教我自学Python,貌似3 ... ·  昨天  
数据派THU  ·  从谱范数梯度到新式权重衰减的思考 ·  2 天前  
大数据文摘  ·  历史性一刻!顶级域名ai.com重定向到De ... ·  3 天前  
软件定义世界(SDX)  ·  清华出品!104页DeepSeek从入门到精 ... ·  4 天前  
51好读  ›  专栏  ›  大数据应用

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

大数据应用  · 公众号  · 大数据  · 2018-03-09 10:00

正文

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

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

Day 208

DS Interview Questions

You are working on a time series data set. You manager has asked you to build a high accuracy model. You start with the decision tree algorithm, since you know it works fairly well on all kinds of data. Later, you tried a time series regression model and got higher accuracy than decision tree model. Can this happen? Why?

BA Interview Questions

R language:

write a repeat{} loop that prints all the even numbers from 2 – 10, via incrementing the variable, "i

LeetCode Questions

  • Description:

    • Given an index k, return the kth row of the Pascal’s triangle.

  • Input: 3

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

  • Assumptions:

    • Could you optimize your algorithm to use only O(k) extra space?

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

Day 207 答案揭晓

DS Interview Questions

Why is naive Bayes so ‘naive ’ ?

‘naive’ Bayes is so ‘naive’ because it assumes that all of the features in a data set are equally important and independent. As we know, these assumption are rarely true in real world scenario.

BA Interview Questions

R language:

Using the following variable:

x=cbind(c(1,2,3,4,9,7,4,3),c(3,1,2,5,3,6,5,3))

x

type a for() loop that calculate y=3 8 18 44 126 140 100 84, such that:

y[1]=x[1,1]*x[1,2]

y[2]=x[2,1]*sum(x[1:2,2])

y[3]=x[3,1]*sum(x[1:3,2])

.

.

.

y[8]=x[8,1]*sum(x[1:8,2])


for(i in 1:8){

if(i==1){y[i]=x[i,1]*x[i,2]}

else{y[i]=x[i,1]*sum(x[1:i,2])}

print(y)

}


Leetcode Questions

  • Description:

  • Given numRows, generate the first numRows of Pascal’s triangle.

    • Input: 5

    • Output:







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