All Companies

SIG (Susquehanna) Interview Questions

120 real interview questions at SIG (Susquehanna).

Showing 31–60 of 120 questions

31

Explain how hash tables work.

Software EngineerSoftware Engineer
32

Since the average time complexity of a hashtable is O(1), why do we still use binary search trees? Can you describe some occasions where we use a binary search tree instead of a hashtable?

Software EngineerSoftware Engineer
33

What is garbage collection, and how is it performed in Java?

Software EngineerSoftware Developer
34

Why do we use hashtables, and what is their time complexity?

Software EngineerSoftware Engineer
35

What is a Binary Search Tree, and what is its time complexity for search, insert, and delete operations?

Software EngineerSoftware Engineer
36

Implement a Stack data structure with methods such as push(), pop(), and top(), in a programming language of your choice (preferably C#). The stack should accept only 12-bit integer numbers as input, and all exceptions should be handled properly.

Software EngineerSoftware Engineer
37

How does a dictionary work?

Software EngineerSoftware Engineer
38

Reverse a given string.

Software EngineerSoftware Developer
39

Given two strings, return the characters that are common to both strings.

Software EngineerSoftware Engineer
40

A group of friends are tracking the miles per gallon (MPG) for each of their cars. Each time they fill up their gas tank, they record the following in a CSV file: person name, car name, miles driven since last fill-up (float), gallons filled at this fill-up (integer), and the fill-up date. Write a program that lets a group member determine the MPG for each of their cars during a specific time range. The principal function for querying MPG is: GetRangeMPG(PersonName, StartDate, EndDate), which returns a list of objects containing (CarName, MPG), where MPG is calculated as (total miles driven during the time period) / (total gallons filled during that time period). The query's date range should be treated inclusively.

Software EngineerSoftware Developer
41

Check if a string is a permutation of a palindrome without using any additional data structures.

Software EngineerSoftware Engineer
42

Given an array of integers, write a program in the language of your choice to do the following: (1) reverse the array; (2) find all perfect numbers in the array.

Software EngineerSoftware Developer
43

How would you implement a garbage collector for a programming language?

Software EngineerSoftware Engineer
44

Develop an algorithm to reverse a string.

Software EngineerSoftware Developer
45

How do you reverse a linked list?

Software EngineerSoftware Engineer
46

Given an array of numbers, find the maximum value in the array.

InternIntern
47

A frog is traveling from point A(0, 0) to point B(4, 6), and each step can only be 1 unit up or 1 unit to the right. The frog also refuses to move three steps in the same direction consecutively. Compute the number of ways the frog can move from A to B.

InternIntern
48

If you are playing a game and your opponent doubles the stakes, what probability of winning should you require to prefer accepting the doubled stakes over resigning from the game?

InternIntern
49

How many ways can five people sit in a circle such that you are sitting next to your best friend?

InternIntern
50

Given a character array representing a sentence, reverse the order of words in the sentence in place.

InternIntern
51

It costs $1 to play a game where you flip a fair coin four times. If you get four consecutive heads, you win $10. Should you play the game?

InternIntern
52

A bag contains 30 balls: 10 black, 5 orange, 10 green, and 5 blue. Without replacement, what is the probability that the second black ball is drawn on the third draw?

InternIntern
53

A painting has a 20% chance of being real and an 80% chance of being fake. If it's fake, you can sell it for $10,000; if it's real, it's worth $500,000. 1. What is the expected value of the painting? 2. If you could buy the option to purchase the painting for $100,000 after learning whether it is real or fake (but are not obligated to buy), what is the value of this option?

InternIntern
54

What is inheritance? What is polymorphism? What is the probability that three people have their birthdays on the same day of the week?

InternIntern
55

We are racing, and at any time we may signal to double our bet. We have each put down 100 to start. If, during the race, I signal that I want to double the bet, what is the minimum probability of winning that you would need in order to accept continuing with the doubled bet?

InternIntern
56

Suppose you and your opponent each have three fair coins and flip all three at once. After flipping, if both of you have the same number of heads from your own coins, your opponent pays you $1. If the numbers are different, you pay your opponent $2. Should you agree to play this game?

InternIntern
57

If the probability of seeing a meteor outside within one hour is 84 percent, what is the probability of seeing at least one meteor outside in 30 minutes?

InternIntern
58

Flip coins sequentially until the sequence 'HT' or 'TT' appears. What is the probability that 'HT' appears before 'TT'?

TraderQuantitative Trader
59

A frog is traveling from point A(0, 0) to point B(4, 6). Each step can only be 1 unit up or 1 unit to the right. The frog refuses to move three steps in the same direction consecutively. Compute the number of ways the frog can move from A to B.

TraderQuantitative Trader
60

A painting is on sale for X amount. The probability that it is real is Y. If it is real, it is worth A; if it is a fake, it is worth B. What is the expected gain on purchasing this painting?

TraderQuantitative Trader

Want the full solutions?

Get detailed walkthroughs for all 120+ SIG (Susquehanna) questions with Quant Blueprint.

Get Started