All Companies

BlackRock Interview Questions

104 real interview questions at BlackRock.

Showing 31–60 of 104 questions

31

Reverse the nodes of a linked list.

Software EngineerSoftware Engineer
32

Arrange an array so that all zeros are on one side and all ones are on the other side.

Software EngineerSoftware Engineer
33

Write a function that reverses a string.

Software EngineerSoftware Engineer
34

Explain the use of the static keyword in the context of Java. What does it mean when a variable or method is declared static?

Software EngineerSoftware Developer
35

What is the difference between an interface and an abstract class in Java? How does method overloading differ from method overriding? Can you explain the concept of encapsulation? What is the purpose of the 'final' keyword in Java?

Software EngineerSoftware Engineer
36

Write the bubble sort algorithm.

Software EngineerSoftware Engineer
37

Implement an isEqual function to compare two objects and determine if they are equal.

Software EngineerSoftware Engineer
38

What data structure would you use to build a parking lot, and why?

Software EngineerSoftware Engineer
39

Sort a stack using only one additional stack and a single variable.

Software EngineerSoftware Engineer
40

Find the first common ancestor of two given nodes in a tree.

Software EngineerSoftware Engineer
41

How does a HashMap work internally?

Software EngineerSoftware Engineer
42

Describe how a HashMap works.

Software EngineerSoftware Developer
43

1. Reverse a string in place. 2. Write a method that converts a decimal number to binary. 3. What is a Singleton? 4. What are the differences between Array and ArrayList in Java? 5. If you were to design a phone directory, what data structure would you use? 6. Calculate Fibonacci numbers with and without recursion; for example, given an array [3, 5, 4], return the 3rd, 5th, and 4th Fibonacci numbers in an array. What is the complexity of your algorithm? 7. Return the length of the last word in a sentence. For example: String s = "Hello Wang" should return 4; String s2 = "Hello " should return 5; String s3 = "" should return 0. 8. Given a number greater than 9, write a program that repeatedly sums its digits until the result is less than 10 (e.g., 38 → 3+8=11, then 1+1=2, stop). 9. What are the differences between String, StringBuilder, and StringBuffer in Java?

Software EngineerSoftware Engineer
44

How does a HashMap find an entry, and what is the runtime complexity of that search operation?

Software EngineerSoftware Engineer
45

Why is multiple inheritance not supported in Java?

Software EngineerSoftware Engineer
46

Given an array of integers (both positive and negative), find the maximum sum of consecutive integers.

Software EngineerSoftware Engineer
47

Implement a resizable stack data structure in your preferred programming language.

Software EngineerSoftware Engineer
48

Write a function that takes a string and an integer as inputs. The integer specifies the maximum number of consecutive repeated letters to allow in the returned string. For example: ('aab', 1) -> 'ab'; ('aaabba', 2) -> 'aabba'.

Software EngineerSoftware Engineer
49

Write a method to perform binary search on a sorted array.

Software EngineerSoftware Engineer
50

How do you convert an expression in infix (prefix) notation to postfix notation?

Software EngineerSoftware Engineer
51

Find the least common ancestor of two given nodes in an N-ary tree.

Software EngineerSoftware Engineer
52

In Java, how would you create a deck of cards and implement a method to shuffle them?

Software EngineerSoftware Engineer
53

How do you detect a cycle in a circular linked list?

Software EngineerSoftware Engineer
54

1. Write an SQL query to find the second largest entry in a table. 2. Reverse the words in a sentence without using another string.

InternIntern
55

What is the angle between the hour hand and the minute hand of a clock at 3:15?

InternIntern
56

What is convexity? How is it calculated? What does it tell you?

InternIntern
57

What is the Black-Scholes option pricing model?

OtherAssociate
58

Design a cache system that stores key-value pairs with a fixed capacity. When the cache reaches its limit, it should evict the least recently used (LRU) entry. Implement methods to get a value by key, set a new key-value pair, and delete a specific key from the cache using a data structure of your choice.

OtherAssociate
59

Explain valuation techniques for pricing mortgage and corporate bonds.

OtherAssociate
60

How do you find the number of words in a file?

InternInternship

Want the full solutions?

Get detailed walkthroughs for all 104+ BlackRock questions with Quant Blueprint.

Get Started