Skip to content

Word Frequency

Get access to track progress Get access to bookmark
Asset Pricingx / 34
Behavioral Questionsx / 7
Brain Teasersx / 79
Derivatives Theoryx / 107
Digital Assets - Cryptox / 82
Energy Tradingx / 55
Linear Algebrax / 24
Machine Learningx / 62
Math Questionsx / 50
Probability and Statisticsx / 369
Programmingx / 54
Totalx / 923
Sorry, you don't have access to this interview question. Sign up to practice with our wide range of interview questions or use the filters to find free examples!
Sign up to see the solution!
Python scratchpad
# Run Python right here in your browser
def two_sum(nums, target):
    seen = {}
    for i, n in enumerate(nums):
        if target - n in seen:
            return [seen[target - n], i]
        seen[n] = i
    return []

print(two_sum([2, 7, 11, 15], 9))  # [0, 1]
Run Python in your browser

Write and execute code — numpy, pandas & scikit-learn included — right on the question page.

Log in to start coding
Title Category Subcategory Difficulty Status
All Vowels ProgrammingString ManipulationEasy
Unlock with a membership
Common Prefix Algorithm ProgrammingString ManipulationMedium
Unlock with a membership
Consecutive Letters ProgrammingString ManipulationMedium
Unlock with a membership
Count Number of Homogenous Substrings ProgrammingString ManipulationMedium
Unlock with a membership
Group Anagrams ProgrammingString ManipulationMedium
Unlock with a membership
Hex Word ProgrammingString ManipulationEasy
Unlock with a membership
Longest Run of Distinct Characters ProgrammingString ManipulationMedium
Unlock with a membership
Palindrome Checker ProgrammingString ManipulationMedium
Unlock with a membership
Smallest String ProgrammingString ManipulationEasy
Unlock with a membership
Summing Up Strings #1 ProgrammingString ManipulationHard
Unlock with a membership
Summing Up Strings #2 ProgrammingString ManipulationHard
Unlock with a membership
Words in a String ProgrammingString ManipulationMedium
Unlock with a membership

Please log in to see the discussion.