當前位置:
首頁 > 最新 > Data Scientist&Business Analyst&Leetcode 面試題 213

Data Scientist&Business Analyst&Leetcode 面試題 213

從6月15日起,數據應用學院將與你一起溫習數據科學(DS)和商業分析(BA)領域常見的面試問題。從10月4號起,每天再為大家分享一道Leetcode演算法題。

希望積極尋求相關領域工作的你每天關注我們的問題並且與我們一起思考,我們將會在第二天給出答案。

Day 113

DS Interview Questions

Write the code to sort an array in NumPy by the nth column

BA Interview Questions

R programming: what is the differences between the values of 「coef()」 and 「(exp)coef」 when you have a regression model?

LeetcodeQuestions

Remove Duplicates from Sorted Array II

Description:

Follow up for "Romove Duplicates"

What if duplicates are allowed at most twice?

Input: [1,1,2,2,2,3,3,3]

Output: [1,1,2,2,3,3]

欲知答案如何?請見下期分解!

Day 112 答案揭曉

DS Interview Questions

How can you check if a data set or time series is Random?

To check whether a dataset is random or not, use the lag plot. If the lag plot for the given dataset does not show any structure then it is random.

BA Interview Questions

R Programming: explain the usage of which() function in R language and name an example of that function

which() function determines the position of elements in a logical vector that are TRUE. for example,

mydata = data.frame(v1=c(2,4,12,3,6))

which(mydata$v1 == max(mydata$v1))

It returns 3 as 12 is the maximum value and it is at 3rd row in the variable x=v1

Leetcode Questions

Remove Duplicates from Sorted List

Description:

Given a sorted linked list, delete all duplicates such that each element appear only once

Input: 1 1 2

Output: 1 2

Tips: 基礎的鏈表去重題目, 需要用到dummy node來簡化特殊情況,省去很多條件判斷,每次遍歷一個node,需要注意指針的賦值

Code:

時間複雜度:O(n)

空間複雜度:O(1)


喜歡這篇文章嗎?立刻分享出去讓更多人知道吧!

本站內容充實豐富,博大精深,小編精選每日熱門資訊,隨時更新,點擊「搶先收到最新資訊」瀏覽吧!


請您繼續閱讀更多來自 大數據應用 的精彩文章:

大數據SDE求職秘籍——實時消息系統Kafka
人工智慧適用於所有企業么?
Spark一小時入門,你聽不了吃虧,聽不了上當
雷軍:我對MIX2非常有信息,我們就看明天蘋果怎麼發布吧
尋找推特的關注者

TAG:大數據應用 |