专栏名称: 大数据应用
数据应用学院被评为2016北美Top Data Camp, 是最专业一站式数据科学咨询服务机构,你的数据科学求职咨询专家!
目录
相关文章推荐
大数据文摘  ·  对于那些出来卖的DeepSeek课程,我有些 ... ·  昨天  
CDA数据分析师  ·  Deepseek来袭,数据分析师会失业吗? ·  2 天前  
CDA数据分析师  ·  Deepseek教我自学Python,貌似3 ... ·  2 天前  
人工智能与大数据技术  ·  因一条1分钟的视频,工程师被OpenAI封禁 ... ·  4 天前  
艺恩数据  ·  明星·剧集·综艺市场概览与洞察 ·  5 天前  
51好读  ›  专栏  ›  大数据应用

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

大数据应用  · 公众号  · 大数据  · 2018-03-28 09:27

正文

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


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


Day 222


DS Interview Questions

Why is “Naive” Bayes naive?


BA Interview Questions

SQL: Query the list of CITY names ending with vowels (a, e, i, o, u) from STATION. Your result cannot contain duplicates.


The STATION table is described as follows:


LeetCode Questions

  • Description:

    • Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand.

    • (i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2).

    • You are given a target value to search. If found in the array return its index, otherwise return -1.

  • Input: 4 5 6 7 0 1 2, 5

  • Output: 2

  • Assumptions:

    • You may assume no duplicate exists in the array.


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



Day 221 答案揭晓


DS Interview Questions

What is Bayes’ Theorem? How is it useful in a machine learning context?

Bayes’ Theorem:

Bayes’ Theorem gives you the posterior probability of an event given what is known as prior knowledge.It’s expressed as the true positive rate of a condition sample divided by the sum of the false positive rate of the population and the true positive rate of a condition.


How is it useful:

Bayes’ Theorem is the basis behind a branch of machine learning that most notably includes the Naive Bayes classifier.


Reference:

https://betterexplained.com/articles/an-intuitive-and-short-explanation-of-bayes-theorem/


BA Interview Questions

SQL: Query the list of CITY names starting with vowels (i.e., a, e, i, o, or u) from STATION. Your result cannot contain duplicates.

The STATION table is described as follows:

where LAT_N is the northern latitude and LONG_W is the western longitude.

Answer:

select CITY

from STATION

where CITY REGEXP '^[AEIOU]';


LeetCode Questions

  • Description:

    • Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers.

    • If such arrangement is not possible, it must rearrange it as the lowest possible order (ie, sorted in ascending order).

    • The replacement must be in-place, do not allocate extra memory.

  • Input: 1,2,3

  • Output: 1,3,2







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