专栏名称: 大数据应用
数据应用学院被评为2016北美Top Data Camp, 是最专业一站式数据科学咨询服务机构,你的数据科学求职咨询专家!
目录
相关文章推荐
CDA数据分析师  ·  Deepseek教我自学Python,貌似3 ... ·  昨天  
软件定义世界(SDX)  ·  指标数据体系建设分享 ·  2 天前  
大数据文摘  ·  为什么中国只有一个 DeepSeek? ·  4 天前  
数据派THU  ·  【ICLR2025】CUBEDIFF:将基于 ... ·  4 天前  
大数据分析和人工智能  ·  这样做,DeepSeek输出增强100倍 ·  3 天前  
51好读  ›  专栏  ›  大数据应用

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

大数据应用  · 公众号  · 大数据  · 2018-05-10 09:22

正文

点击上方 蓝字 会变美




MAY

9

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

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


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

Day

252

DS Interview Question

How do we choose the factor K?

BA Interview Question

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

LeetCode Question

3 Sum Closest


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

251

答案揭晓

DS Interview Question & Answer

How does the KNN algorithm work?

Answer:

KNN is a supervised machine learning algorithm, basically it works based on minimum distance from the query instance to the training samples to determine the K-nearest neighbors to be the prediction of the query instance. It can be used on both classification and regression problem.


BA Interview Question & Answer

What are the differences among ROWNUM, RANK in SQL?

Answer:

ROW_NUMBER assigns contiguous, unique number from 1.. N ti a result set.


RANK does not assign unique numbers - nor does it assign contiguous numbers. If two records tie for second place, no record will be assigned the 3rd rank as no one came in their, according to RANK.

Examples:


SELECT name, sal, rank() over (order by sal desc) rank_by_sal







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