PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/Coding & Algorithms/F5Networks

Find Top Hashtags

Last updated: May 2, 2026

Quick Overview

This question evaluates string parsing and tokenization, frequency counting of elements, time-window filtering of events, and the ability to sort results with deterministic tie-breaking rules.

  • medium
  • F5Networks
  • Coding & Algorithms
  • Software Engineer

Find Top Hashtags

Company: F5Networks

Role: Software Engineer

Category: Coding & Algorithms

Difficulty: medium

Interview Round: Take-home Project

You are given two arrays of length `n`: - `tweets[i]`: the content of the `i`-th tweet as a string - `timestamps[i]`: the publish time of the `i`-th tweet as an integer You are also given two integers: - `currentTime` - `timeWindow` Consider only tweets whose timestamp falls within the inclusive time interval: `[currentTime - timeWindow, currentTime]` A hashtag is any token in a tweet that starts with `#`. Count hashtag popularity by the number of times each hashtag appears in the tweets within the time window. Return the most popular at most 3 hashtags. Sort hashtags by descending count. If two hashtags have the same count, sort them lexicographically ascending. If fewer than 3 hashtags appear in the time window, return all of them.

Quick Answer: This question evaluates string parsing and tokenization, frequency counting of elements, time-window filtering of events, and the ability to sort results with deterministic tie-breaking rules.

F5Networks logo
F5Networks
Jan 25, 2026, 12:00 AM
Software Engineer
Take-home Project
Coding & Algorithms
0
0

You are given two arrays of length n:

  • tweets[i] : the content of the i -th tweet as a string
  • timestamps[i] : the publish time of the i -th tweet as an integer

You are also given two integers:

  • currentTime
  • timeWindow

Consider only tweets whose timestamp falls within the inclusive time interval:

[currentTime - timeWindow, currentTime]

A hashtag is any token in a tweet that starts with #. Count hashtag popularity by the number of times each hashtag appears in the tweets within the time window.

Return the most popular at most 3 hashtags. Sort hashtags by descending count. If two hashtags have the same count, sort them lexicographically ascending. If fewer than 3 hashtags appear in the time window, return all of them.

Submit Your Answer

Sign in to leave a comment

Loading comments...

Browse More Questions

More Coding & Algorithms•More F5Networks•More Software Engineer•F5Networks Software Engineer•F5Networks Coding & Algorithms•Software Engineer Coding & Algorithms
PracHub

Master your tech interviews with 8,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.