专栏名称: 大数据应用
数据应用学院被评为2016北美Top Data Camp, 是最专业一站式数据科学咨询服务机构,你的数据科学求职咨询专家!
目录
相关文章推荐
天池大数据科研平台  ·  一文漫谈DeepSeek及其背后的核心技术 ·  昨天  
数据派THU  ·  从谱范数梯度到新式权重衰减的思考 ·  2 天前  
CDA数据分析师  ·  【2月】CDA网校2025 ... ·  3 天前  
51好读  ›  专栏  ›  大数据应用

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

大数据应用  · 公众号  · 大数据  · 2018-02-27 10:27

正文

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

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

Day 201

DS Interview Questions

Explain what is the criteria for a good data model?

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.

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.

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

Day 200 答案揭晓

DS Interview Questions

Explain what is n-gram?

An n-gram is a contiguous sequence of n items from a given sequence of text or speech. It is a type of probabilistic language model for predicting the next item in such a sequence in the form of a (n-1).

BA Interview Questions

R language:

Using the following variables:

x=1

y=40

i=c(1:10)

## write a for() loop that increments x by three and decrease y by two, for each i.


for(j in i){

x=x+3

y=y-2

c

print(c)

}


Leetcode Questions


Description:

  • Write a SQL query for a report that provides the following information for each person in the Person table, regardless if there is an address for each of those people:

  • FirstName, LastName, City, State


Input:

Table: Person

+-------------+---------+

| Column Name | Type    |

+-------------+---------+

| PersonId    | int     |

| FirstName   | varchar |

| LastName    | varchar |

+-------------+---------+
PersonId is the primary key column for this table.


Table: Address

+-------------+---------+

| Column Name | Type    |

+-------------+---------+

| AddressId   | int     |

| PersonId    | int     |

| City        | varchar |







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