Vanguard Interview Questions

Vanguard Interview Guides

Click or hover over a slice to explore questions for that topic.
Data Structures & Algorithms
(68)
SQL
(38)
Machine Learning
(35)
Probability
(19)
Statistics
(12)

Vanguard Interview Questions

Practice for the Vanguard interview with these recently asked interview questions.

QuestionTopicDifficulty
Data Structures & Algorithms
Medium

You’re given two lists:

  • A dictionary of deposits and withdrawals into an index fund with timestamps.
  • A daily price of the index fund by date.

Write a function fund_return to calculate the total profit gained from investing in the index from the start to end date. You may only purchase and sell discrete shares of the index fund. For example, if you have $23 and the price of the index is $5, you may only purchase four shares.

For the purposes of this question, assume that the revenue (or loss) from the index fund is applied to the deposited funds at the beginning of every day based on the percentage increase in the price of the index and that the purchases (or withdrawals) are made before the end of each day.

Example:

Input:

purchases = {'date': ['2021-06-21', '2021-06-23', '2021-06-24'],
             'purchase': [10000.00, -1000.00, 1000.00]}

prices = {'date': ['2021-06-21', '2021-06-22', '2021-06-23',
          '2021-06-24', '2021-06-25'], 'price': [50.00, 55.00, 50.00,
          55.00, 60.50]}

Output:

def fund_return(purchases, prices) -> 1989.00

Explanation:

  • 2021-06-21: Purchase 200 shares for $10,000
  • 2021-06-23: Sell 20 shares for $1,000
  • 2021-06-24: Purchase 18 shares for $990 now have spent $9990 total
  • 2021-06-25: Own 198 shares with value $60.50 per share. 198 * 60.5 = 11,979
  • We spent a total of $9,990 on the index fund. So our total profit is 11,979-9990 = 1989
Behavioral
Medium
SQL
Easy
Loading pricing options

View all Vanguard questions

Challenge

Check your skills...
How prepared are you for working at Vanguard?

Vanguard Salaries by Position

$110K
$184K
Data Scientist
Median: $125K
Mean (Average): $132K
Data points: 14
$91K
$188K
Data Analyst
Median: $115K
Mean (Average): $127K
Data points: 8
$70K
$135K
Data Engineer
Median: $115K
Mean (Average): $112K
Data points: 26
Product Manager*
$92K
$128K
Product Manager
Median: $110K
Mean (Average): $110K
Data points: 2
$93K
$110K
ML Engineer
Median: $103K
Mean (Average): $103K
Data points: 6
AI Research Scientist*
$95K
AI Research Scientist
Median: $95K
Mean (Average): $95K
Data points: 2
$70K
$130K
Software Engineer
Median: $80K
Mean (Average): $88K
Data points: 45

Most data science positions fall under different position titles depending on the actual role.

From the graph we can see that on average the Data Scientist role pays the most with a $131,559 base salary while the Software Engineer role on average pays the least with a $88,378 base salary.

Discussion & Interview Experiences

?
There are no comments yet. Start the conversation by leaving a comment.