Find Company Tickers Mentioned in a News Headline

Last updated: August 3, 2026

Quick Overview

This question asks the candidate to write a function that extracts company tickers from a given news headline.

SIG (Susquehanna)
Coding & Algorithms
Software Engineer
SIG (Susquehanna)
August 3, 2026
Software Engineer
Onsite
Coding & Algorithms
Easy

7

0

53 solved


This question asks the candidate to write a function that extracts company tickers from a given news headline.

This question is typically asked during the onsite interview round for software engineering roles at SIG. The interviewer is evaluating the candidate's coding skills, problem-solving ability, and understanding of string manipulation. It also provides insight into how the candidate approaches a straightforward problem and their ability to write clean, efficient code.

What the Interviewer Expects
  • Clearly define the problem and requirements before coding.
  • Implement a function that accurately identifies and extracts tickers from the headline.
  • Handle edge cases, such as multiple tickers or incorrect formats.
  • Write clean, maintainable code with appropriate variable names.
  • Include comments and documentation to explain the logic.
Key Topics to Cover
String manipulation
Regular expressions
Edge cases
Code efficiency
Testing
How to Approach This
  1. Clarify input constraints and edge cases before writing code.
  2. Walk through your approach verbally and confirm with the interviewer before coding.
  3. Start with a brute force solution, then optimize. Mention time and space complexity.
  4. Test your solution with examples, including edge cases like empty input or duplicates.
  5. Consider common patterns: sliding window, two pointers, hash map, BFS/DFS, dynamic programming.
Possible Follow-up Questions
  • How would you modify your solution to handle different formats of tickers?
  • Can you explain the time complexity of your solution?
  • What would you do if the input headline is in a different language?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice DSA Problems
Sample Answer
Requirements

To solve the problem, we need to extract stock tickers from a news headline. Tickers are typically uppercase letters and can be followed by a period or other symbols. We will assume that tickers are s...

Approach

We can use regular expressions to identify patterns that match stock tickers. The regex pattern will look for sequences of uppercase letters that may be followed by optional punctuation. We will imple...


Submit Your Answer
Markdown supported

Related Questions