专栏名称: 大数据应用
数据应用学院被评为2016北美Top Data Camp, 是最专业一站式数据科学咨询服务机构,你的数据科学求职咨询专家!
目录
相关文章推荐
艺恩数据  ·  新春贺岁,福满人间! ·  2 周前  
数据派THU  ·  提升数据科学工作流效率的10个Jupyter ... ·  5 天前  
天池大数据科研平台  ·  使用DeepSeek必备的10个技巧 ·  3 天前  
大数据D1net  ·  2025年数据治理趋势与成功策略全解析 ·  3 天前  
51好读  ›  专栏  ›  大数据应用

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

大数据应用  · 公众号  · 大数据  · 2018-05-11 08:56

正文

点击上方 蓝字 会变美




MAY

10

Data Application Lab 自2017年6月15日起,每天和你分享讨论一道数据科学(DS)和商业分析(BA) 领域常见的面试问题。

自2017年10月4日起,每天再为大家分享一道Leetcode 算法题。


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

Day

253

DS Interview Question

Talk about how K-D Tree improve the KNN.

BA Interview Question

R Programing: How many data structures does R language have?

LeetCode Question

Four Sum


Description: Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers. You may assume that each input would have exactly one solution.


Input: [2, 7, 11, 15]

Output: [0, 1]


Assumptions:  each input would have exactly one solution.


Day

252

答案揭晓

DS Interview Question & Answer

How do we choose the factor K?

Answer:

The small K will cause the results in a great variance, the larger K will make every points classified at the most probable class. So what we need to do is to set aside a part of the training data as a validation set, then change different numbers of K to see which one makes the best performance


BA Interview Question & Answer

R Programming question: two vectors X and Y are defined as follows X

What will be output of vector Z that is defined as

Z

Answer:

in R language when the vectors have different lengths, the multiplication begins with the smaller vector and continues till all the elements in the larger vector has been multiplied

The output of the above code will be -







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