HackerRank Coding Interview Questions
6 coding questions reported by candidates who interviewed at HackerRank, out of 6 HackerRank questions we track. They average 2.5/5 difficulty (medium). Most common topics: Array, String, Math, Trie.
Practice HackerRank questions →Difficulty
- 2/5 — easy3
- 3/5 — medium3
Asked for SWE (6)
Reported HackerRank coding questions
Count Prefix Pairs in List of Strings
3/5Discover how to efficiently find relationships within a collection of text terms, specifically counting how many string pairs share a prefix relationship in either direction. This algorithmic puzzle, commonly sourced from HackerRank challenges, tests your proficiency with string manipulation and hierarchical data structures like tries or sorted arrays to avoid sluggish nested loops. Building an optimal solution requires careful consideration of lexicographical ordering and duplicate handling to ensure high performance. Review the full problem statement and complete implementation code by acquiring a subscription.
StringTriePrefixCalculate Time Difference in HH-MM Format
2/5This HackerRank interview question challenges candidates to compute the shortest forward time gap between a given reference point and a collection of daily timestamps. This problem evaluates your ability to handle cyclic time calculations, manage minute-level conversions, and properly format the resulting duration. Access to the complete problem description and expert model solution requires an active subscription.
StringMathTimeFind Numbers with Two Sevens Divisible by Three
2/5This HackerRank interview challenge requires you to filter a sequence of integers to identify numbers that contain exactly two occurrences of the digit seven and are also divisible by three. The task tests your string manipulation skills, numerical digit extraction, and modular arithmetic logic while preserving the original sequence order. It serves as a great practice for combining multiple conditional filters in data processing tasks. To access the full problem details and verified solution code, a subscription is required.
ArrayDigitsMathFind Gaps in Logistics
2/5Analyze a temporal sequence processing challenge commonly encountered in HackerRank assessments. Given a chronologically ordered dataset of supply chain milestones, your goal is to identify and report every inactive interval where no operational activity is recorded between consecutive occurrences. This problem evaluates your competency in sorting techniques, date-time arithmetic, and boundary analysis. Unlock the comprehensive prompt details and complete tested solution by becoming a subscriber today.
ArraySortingIntervalsMinimal Edge Reversal in Directed Graph
3/5This HackerRank challenge involves optimizing a directed graph structure. You are given a graph with directed edges and must select a single node to serve as a root. The objective is to minimize the total number of edge direction changes required such that every edge in the graph ultimately points away from your chosen root. This problem tests your understanding of graph traversal, connectivity, and potentially shortest path algorithms on transformed graphs. The full problem and model solution require a subscription.
GraphBFSDirected GraphCheck if Permutation Subset Within Range Exists
3/5This intriguing HackerRank interview question evaluates your ability to analyze permutations and verify whether growing prefix sequences form continuous subarray blocks within a given list. It examines your logical reasoning, bounds-checking capabilities, and skill in recognizing structural properties of number sequences. You will learn how to efficiently scan and validate arrangements without resorting to costly nested checks. Gain full access to the complete problem breakdown and expert solution by signing up for a subscription.
ArrayPermutationTwo Pointer
HackerRank coding interview FAQ
- What coding questions does HackerRank ask?
- 6 reported coding questions, most often on Array, String, Math, Trie, Prefix.
- How hard is the HackerRank coding interview?
- The reported coding questions average 2.5 out of 5: 3 at 2/5, 3 at 3/5.