46 practice questions for LinkedIn QA Engineer interviews
LinkedIn QA engineer interviews test automation frameworks, test strategy, CI integration, performance testing, and debugging complex multi-service systems.
Category: String coding problemConfiguration files at LinkedIn are written in JSON, YAML, and HOCON formats. Malformed config files can bring down multiple services, so validators...Input: String Output: Printed output
codingMediumVerified Question#2
2. Words From Phone Number
Category: String coding problemA standard phone keypad maps digits to letters as follows: ` 2 -> a, b, c 3 -> d, e, f 4 -> g, h, i 5 -> j, k, l 6 -> m, n, o 7 -> p, q, r, s 8 ->...Input: List Output: Array
codingMediumVerified Question#3
3. Circular Signal Window
Category: Array coding problemYou are given a circular array signal of 0s and 1s representing antenna readings logged in sequence, where 1 means good signal and 0 means...Input: Array Output: Integer
codingEasyVerified Question#4
4. Active Sprint Filter
Category: Graph coding problemA project tracking system logs team activity throughout the workday. Each log entry has the format "teamId action timestamp", where action is...Input: Graph (nodes and edges) Output: Printed output
codingMediumVerified Question#5
5. Dependency Task Executor
Category: Graph coding problemA build system manages pipeline steps where each step may depend on other steps completing first. Implement the BuildPipeline class:...Input: Graph (nodes and edges) Output: Computed result
codingMediumVerified Question#6
6. Daily Branch Pruning
Category: Tree coding problemA file system manages a directory tree. Each day, all leaf directories (those with no child directories) are simultaneously removed. Directories that...Input: Array Output: Array
codingHardVerified Question#7
7. [OA] Minimum Weight Ceiling Path
Category: Graph coding problemA network topology connects n servers labeled 1 to n. Each connection is a bidirectional link with a bandwidth cost. A network engineer needs...Input: Graph (nodes and edges) Output: Integer
codingHardVerified Question#8
8. Priority Cache System
Category: String coding problemA CDN (Content Delivery Network) maintains a fixed-capacity cache of web content. Each content item has an associated priority score. When the cache...Input: String Output: Integer
codingMediumVerified Question#9
9. Distribution Center Placement
Category: Array coding problemA logistics company is expanding its distribution network along a single highway. You are given an array of integers locations representing the...Input: Array of integers Output: Computed result
codingMediumVerified Question#10
10. Manual String Substitution
Category: String coding problemA template engine needs to substitute all occurrences of a pattern in a template string with a replacement string, without using any built-in...Input: String Output: Printed output
codingHardVerified Question#11
11. Combine N-ary Trees
Category: Tree coding problemYou are given the roots of two N-ary organization charts, each representing a hierarchical department structure. Every node has an integer...Input: List Output: Computed result
codingMediumVerified Question#12
12. Closest Value Pair
Category: Array coding problemAn inventory system has two sorted product catalogs A and B. Each value in the catalog represents a product size. Find a pair [a, b] where a...Input: Array Output: Computed result
codingMediumVerified Question#13
13. Digit Replacement Maximizer
Category: String coding problemA numeric optimization system performs exactly k substitution operations on a number string s. In each operation, choose any digit in s that is...Input: String Output: Computed result
codingHardsliding window#1
1. [OA] Binary Search — Implement a Flaky Test Detector used in LinkedIn QA
As LinkedIn scales, it becomes crucial to identify and reduce flaky tests that intermittently fail. Your task is to implement a FlakyTestDetector that monitors test execution results and flags tests that exhibit flakiness.
reportResult(testName: str, result: bool) -> None: Records the result of a test.
isFlaky(testName: str) -> bool: Checks if a test is marked as flaky based on the number of reported results.
Example 1: Input: reportResult('FeedTest', True) Output: None Explanation: Records a passing result for 'FeedTest'.Example 2: Input: isFlaky('FeedTest') Output: False Explanation: 'FeedTest' is not flaky since no failures recorded yet.Constraints:
1 <= testName.length <= 50
Each test can be reported multiple times.
codingMediumtree#2
2. [OA] Depth-First Search — Implement a Test Result Tracker for LinkedIn’s Automation Suite
LinkedIn needs to efficiently track and manage test results for its extensive automation suite. This involves navigating through a complex system of test cases and results. You are tasked to implement a TestResultTracker class that can record and manage test outcomes efficiently.
addResult(testName: str, result: bool) -> None: Records the result of a test case. If the test already exists, it updates the result.
getResult(testName: str) -> bool: Retrieves the result of a test case, returning false if it doesn't exist.
Example 1: Input: addResult('LoginTest', True) Output: None Explanation: Adds a test result for 'LoginTest'.Example 2: Input: getResult('LoginTest') Output: True Explanation: Returns the result for 'LoginTest'.Constraints: