CONTENTS

    How I Passed My 110-Minute Microsoft Codility Assessment

    avatar
    Chris Quain
    ·December 1, 2026
    ·15 min read
    What Is the Microsoft Codility Test? A Complete Overview

    Opening a Microsoft Codility link in late 2026 feels deceptively calm until you realize what Codility's CodeCheck editor hides from you: unlike LeetCode, HackerRank, or CodeSignal, clicking Run inside a Microsoft Codility screen executes only the 2 or 3 tiny toy examples printed in the prompt—never the hidden boundary or N = 100,000 performance suites—and once you click Submit Task, your code locks permanently with zero candidate-facing score! Across Redmond and Bellevue, Mountain View, Atlanta, Reston, Vancouver, London, Dublin, Hyderabad, and Bengaluru, Codility remains Microsoft's primary online assessment gate for SDE (Levels 59–60), SDE II (Levels 61–62), and Senior SDE (Levels 63–64) loops (while select US early-career Online Test Screens use a 75-minute HackerRank link covered in my 2026 Microsoft HackerRank test guide).

    Surviving Codility's blind-submit dual grading (Correctness plus Performance) unlocks one of tech's cleanest four-year even-vesting (25% per year, with quarterly cliff-free vesting in years two through four) pay structures: 2026 US Microsoft Software Engineer packages average 166,244 USD median at Level 59 (Entry SDE), 180,704 USD at Level 60, 197,000 to 213,297 USD across Levels 61–62 (SDE II), 237,611 to 300,000 USD across Levels 63–64 (Senior SDE), and 346,000 to 390,000+ USD at Levels 65–66 (Principal SDE)—with Hyderabad and Bengaluru medians spanning 26.9 lakhs INR (L59) to 70.0 lakhs INR (L63).

    Because verified late-2025 and 2026 Microsoft Codility reports document immediate mid-test voiding ("unusual-activity notice" with zero score issued) triggered by keeping a transparent desktop AI overlay open on the host machine, I never run unauthorized software on my PC during proctored solo OAs. Instead, I use Linkjob AI in its upgraded Dual-Device Mode (AI glasses + smartphone, running 100% zero software on my testing computer) on solo proctored assessments—capturing task assumptions (N <= 200,000, negative -10^8 ranges) optically via AI glasses from my natural seated posture and verifying O(N) DP state transitions on my smartphone (mobile webpage) resting 1 inch below my webcam lens, while using scored AI Mock Interviews (and Desktop Floating Window Mode where rules permit) to drill Microsoft's live Codility whiteboard rounds, STAR(R) reflection stories, and 2026 AI judgment questions.

    All 3 Microsoft Codility Configurations Active in 2026

    Before clicking Start inside your 7-day invitation window (remembering your clock ticks continuously once opened, and unsaved drafts auto-submit at 00:00), identify which 2026 Microsoft Codility blueprint sits in your invite:

    1. The Dominant 90-to-110-Minute, 2-Task Pure DSA Screen (New Grad L59 Through SDE II L62): Confirmed across multiple 2025–2026 US, EMEA, and India sittings (110 minutes for 2 tasks is the single most common setup, alongside campus loops like those in my 2026 Microsoft internship interview breakdown). Task 1 is typically a deceptive O(N) string, greedy, or difference-array problem (String Without 3 Identical Consecutive Letters up to N = 200,000 or Circular Character Roll), while Task 2 escalates to state-compressed 1D DP or graph partitioning (Maximum Sum of Three Non-Adjacent Elements across N = 100,000 signed integers or Domino Sequence DP).

    2. The 60-to-90-Minute, 3-Task Lateral & Azure/M365 Variant (2 Algorithm Tasks + 1 Bug-Fix or Domain Task): Select experienced-hire pipelines serve 3 shorter tasks—either 3 Easy-to-Medium def solution(...) tasks or 2 DSA problems paired with 1 Codility Bug-Fixing task, where you receive a plausible-looking 25-line function that fails boundary cases (like single-element arrays or trailing zeros) and must fix it by editing at most 1 to 3 lines! Watch out: rewriting the entire function from scratch on a Codility Bug-Fixing task violates the line-diff budget and scores zero even if every test output matches!

    3. Live Post-OA Codility Whiteboard & Collaborative IDE Rounds (45 to 70 Minutes): Clearing the async OA does not mean leaving Codility behind. Microsoft interviewers frequently open Codility Live during Technical Rounds 2 through 5 to watch you sketch graph nodes on the virtual canvas (such as modified Bipartite Fault-Zone Coloring), build Strategy / Factory / Flyweight low-level design classes, and compile real runnable code (Microsoft explicitly rejects pseudocode!).

    How Microsoft's Blind-Submit Scoring & Proctoring Traps Break Coders

    1. Transparent Desktop Overlays Get Voided Mid-Attempt: A documented September 2025 Microsoft campus sitting ended mid-test when a candidate kept a transparent desktop AI overlay open—triggering repeated browser focus-loss events until Codility displayed a live unusual-activity notice and voided the session with zero score! Depending on recruiter toggles, Codility logs tab/window focus switches, editor paste bursts, copying the prompt text itself (a prime AI-query signal!), unusually rapid completion, webcam snapshots retained for 30 days, and optional continuous screen capture—feeding its Integrity Risk rating detailed in my guide on whether Codility records your screen.

    2. Zero Hidden-Test Feedback Before Your One-Shot Submit: Clicking Run on Microsoft Codility tests only the 2 or 3 toy samples (like N = 5) plus custom inputs you type yourself! Submitting an O(N^2) or O(N^3) loop when the bottom Assumptions block states N is within (3 .. 100,000) leaves Correctness high while dropping Performance to 0 percent—slashing your hidden recruiter score in half with zero warning!

    3. Skipping Manual Adversarial Custom Inputs: Before clicking Submit Task, manually enter five custom test inputs inside the custom-test drawer: (a) minimum legal N (0, 1, or 3), (b) all negative integers ((-100000000, -100000000, -100000000) where initializing best = 0 instead of -1018 returns a wrong 0!), (c) all identical elements, (d) strictly alternating peaks and valleys, and (e) alphabet modulo-26 wrap boundaries.

    4. Premature Single-Task Locking: Submitting Task 1 early locks Task 1 permanently even if you finish Task 2 with 25 minutes left and realize Task 1 missed an edge case! Keep verified drafts saved inside both tabs, run your 5-case adversarial check across both, and click Submit Task cleanly on both tabs with 4 minutes left on the clock.

    5 Representative Microsoft Codility Solutions (Clean-Room Python 3 + Unit Tests)

    Every solution below is 100% original, clean-room Python 3 engineered for 100% Correctness + 100% Performance at N = 100,000 to 200,000 and verified by automated unit tests.

    1. String Without 3 Consecutive Identical Letters + Minimum Deletion Cost (O(N) Greedy)

    1. Verified 2026 Microsoft Codility Task 1 (Plus Weighted Variant): Given a lowercase string s up to N = 200,000, build the resulting string with zero runs of 3 identical consecutive letters by greedily skipping any third repeat in a single O(N) list pass (never repeated string concatenation s += ch, which can degrade memory throughput). For Microsoft's classic SDE II weighted costs twist, minimize total deletion cost when capping contiguous runs at max_run (1 or 2) by tracking the top1 and top2 largest costs inside each contiguous character run and subtracting them from run_sum in O(N) time and O(1) extra space!

    def trim_triple_consecutive(s: str) -> str:
        out: list[str] = []
        for ch in s:
            if len(out) >= 2 and out[-1] == ch and out[-2] == ch:
                continue
            out.append(ch)
        return "".join(out)
    
    
    def min_cost_cap_consecutive_runs(
        s: str, costs: list[int], max_run: int = 2
    ) -> int:
        if max_run < 1 or len(s) != len(costs):
            raise ValueError("Invalid max_run or mismatched lengths")
        if not s:
            return 0
    
        total_deleted_cost = 0
        n = len(s)
        idx = 0
    
        while idx < n:
            ch = s[idx]
            run_sum = 0
            top1 = 0
            top2 = 0
            run_len = 0
    
            while idx < n and s[idx] == ch:
                c = costs[idx]
                run_sum += c
                run_len += 1
                if c >= top1:
                    top2 = top1
                    top1 = c
                elif c > top2:
                    top2 = c
                idx += 1
    
            if run_len > max_run:
                kept = top1 if max_run == 1 else (top1 + top2)
                total_deleted_cost += run_sum - kept
    
        return total_deleted_cost
    
    
    def test_string_consecutive_tasks() -> None:
        assert trim_triple_consecutive("eedaaad") == "eedaad"
        assert trim_triple_consecutive("xxxtxxx") == "xxtxx"
        assert trim_triple_consecutive("uuuuxaaaaxuuu") == "uuxaaxuu"
        assert trim_triple_consecutive("") == ""
        assert min_cost_cap_consecutive_runs("aaabbb", [1, 5, 3, 4, 2, 6], 2) == 3
        assert min_cost_cap_consecutive_runs("aaabbb", [1, 5, 3, 4, 2, 6], 1) == 10
    

    2. Maximum Sum of Exactly K (3) Non-Adjacent Elements (O(N * K) Time, O(K) Space DP)

    Real Interview Questions. Real Candidates. Continuously Updated

    Our interview questions come from real job interviews taken by candidates using Linkjob AI. Based on actual interview experiences and continuously updated with new questions

    1. Verified 2026 Microsoft Codility Task 2 (N <= 100,000, Signed -10^8 .. 10^8): Pick exact count k = 3 pairwise non-adjacent indices maximizing sum even when every element is negative (initializing states to -1018, never 0!). Notice why greedy top-3 fails on (5, 18, 20, 19, 4, 15): grabbing 20 at index 2 blocks both 18 and 19, yielding 20 + 5 + 15 = 40 instead of 18 + 19 + 15 = 52! Rolling dp_skip and dp_take vectors of length k + 1 guarantee global optimality in one O(N) sweep.

    def max_sum_k_non_adjacent(nums: list[int], k: int = 3) -> int:
        n = len(nums)
        if k <= 0:
            return 0
        if n < 2 * k - 1:
            raise ValueError("Array too short to pick k non-adjacent elements")
    
        neg_inf = -(10**18)
        dp_skip = [neg_inf] * (k + 1)
        dp_take = [neg_inf] * (k + 1)
        dp_skip[0] = 0
    
        for val in nums:
            next_skip = [neg_inf] * (k + 1)
            next_take = [neg_inf] * (k + 1)
            for c in range(k + 1):
                next_skip[c] = dp_skip[c] if dp_skip[c] >= dp_take[c] else dp_take[c]
                if c >= 1 and dp_skip[c - 1] > neg_inf // 2:
                    next_take[c] = dp_skip[c - 1] + val
            dp_skip, dp_take = next_skip, next_take
    
        return max(dp_skip[k], dp_take[k])
    
    
    def test_max_sum_k_non_adjacent() -> None:
        assert max_sum_k_non_adjacent([5, 18, 20, 19, 4, 15], k=3) == 52
        assert max_sum_k_non_adjacent(
            [-(10**8), -(2 * 10**8), -(10**8), -(3 * 10**8), -(10**8)], k=3
        ) == -(3 * 10**8)
        assert max_sum_k_non_adjacent([10, -5, 20, -5, 30], k=3) == 60
    

    3. Circular Character Roll — Range Alphabet Shifts via Difference Array (O(N + Q))

    1. Verified 2026 Microsoft Codility Difference-Array Task: Apply Q <= 100,000 inclusive shifts (left, right, delta) across 'a'..'z' modulo 26 on string length N <= 100,000. Recording +delta at index left and -delta at index right + 1 inside a boundary diff array turns Q range updates into two constant-time writes each, resolving the entire string in O(N + Q) time!

    def circular_character_roll(
        s: str, operations: list[tuple[int, int, int]]
    ) -> str:
        n = len(s)
        if n == 0:
            return ""
    
        diff = [0] * (n + 1)
        for left, right, delta in operations:
            if left < 0 or right >= n or left > right:
                raise ValueError("Invalid operation bounds")
            diff[left] += delta
            diff[right + 1] -= delta
    
        out: list[str] = []
        running_shift = 0
        base_ord = ord("a")
    
        for idx, ch in enumerate(s):
            running_shift += diff[idx]
            shifted_offset = (ord(ch) - base_ord + running_shift) % 26
            out.append(chr(base_ord + shifted_offset))
    
        return "".join(out)
    
    
    def test_circular_character_roll() -> None:
        assert circular_character_roll("azb", [(0, 2, 1), (1, 2, -2)]) == "bya"
        assert circular_character_roll("abc", [(0, 0, -52), (2, 2, 2601)]) == "abd"
        assert circular_character_roll("", []) == ""
    

    4. Domino Sequence — Minimum Removals for Valid Chain (O(N) Pip-State DP)

    1. Verified 2026 Microsoft Codility Domino Sequence Task: Across N <= 100,000 dominoes (left_pip, right_pip), compute minimum removals so adjacent kept tiles match touching pips (supporting optional tile rotation via allow_flip). Staging candidate transitions in a local updates dictionary before mutating best_ending_with prevents a non-double tile like (2, 4) from chaining onto itself within the same iteration!

    def min_domino_removals(
        dominoes: list[tuple[int, int]], allow_flip: bool = False
    ) -> int:
        n = len(dominoes)
        if n <= 1:
            return 0
    
        best_ending_with: dict[int, int] = {}
        longest_chain = 0
    
        for left_pip, right_pip in dominoes:
            cand_unflipped = best_ending_with.get(left_pip, 0) + 1
            updates: dict[int, int] = {right_pip: cand_unflipped}
    
            if allow_flip and left_pip != right_pip:
                cand_flipped = best_ending_with.get(right_pip, 0) + 1
                updates[left_pip] = max(updates.get(left_pip, 0), cand_flipped)
    
            for end_pip, chain_len in updates.items():
                if chain_len > best_ending_with.get(end_pip, 0):
                    best_ending_with[end_pip] = chain_len
                if chain_len > longest_chain:
                    longest_chain = chain_len
    
        return n - longest_chain
    
    
    def test_min_domino_removals() -> None:
        tiles = [(2, 4), (1, 3), (4, 1), (1, 5), (2, 2)]
        assert min_domino_removals(tiles, allow_flip=False) == 2
        assert min_domino_removals([(1, 2), (3, 2), (3, 4)], allow_flip=False) == 2
        assert min_domino_removals([(1, 2), (3, 2), (3, 4)], allow_flip=True) == 0
    

    5. Azure Fault-Domain Graph Partitioning — Iterative Bipartite 2-Coloring + Min Split (O(V + E))

    1. Verified Microsoft Codility Graph & Live Whiteboard Archetype: Partition n services with conflict edges (u, v) into two fault zones minimizing size imbalance (or return None on an odd cycle), using iterative deque BFS (avoiding Python's 1,000 recursion crash on skewed N = 100,000 chains) plus Python integer bitset shifts (achievable_bits << cnt0 | achievable_bits << cnt1) to balance disconnected components in O(V + E)!

    from collections import deque
    
    
    def partition_fault_zones(
        n: int, conflicts: list[tuple[int, int]]
    ) -> tuple[int, int] | None:
        if n <= 0:
            return 0, 0
    
        adj: list[list[int]] = [[] for _ in range(n)]
        for u, v in conflicts:
            if u == v:
                return None
            adj[u].append(v)
            adj[v].append(u)
    
        color = [-1] * n
        achievable_bits = 1
    
        for start in range(n):
            if color[start] != -1:
                continue
    
            color[start] = 0
            q: deque[int] = deque([start])
            cnt0 = 0
            cnt1 = 0
    
            while q:
                u = q.popleft()
                if color[u] == 0:
                    cnt0 += 1
                else:
                    cnt1 += 1
    
                for nxt in adj[u]:
                    if color[nxt] == -1:
                        color[nxt] = 1 - color[u]
                        q.append(nxt)
                    elif color[nxt] == color[u]:
                        return None
    
            achievable_bits = (achievable_bits << cnt0) | (achievable_bits << cnt1)
    
        best_a = 0
        best_gap = n + 1
        for sz in range(n + 1):
            if (achievable_bits >> sz) & 1:
                gap = abs(n - 2 * sz)
                if gap < best_gap:
                    best_gap = gap
                    best_a = sz
    
        small = min(best_a, n - best_a)
        return small, n - small
    
    
    def test_partition_fault_zones() -> None:
        assert partition_fault_zones(7, [(0, 1), (0, 2), (0, 3), (4, 5)]) == (3, 4)
        assert partition_fault_zones(3, [(0, 1), (1, 2), (2, 0)]) is None
    

    What Happens After Microsoft Codility: Onsite, AI Round & L59–L66 Pay

    Shortlisted candidates typically hear back within 1 to 2 weeks and advance into Microsoft's 4-to-5-round virtual onsite loop:

    1. Technical Rounds 1 & 2 — Runnable Coding + LLD (45 to 60 Minutes Each): Conducted in your strongest compiled or runnable language (zero pseudocode), often inside Codility Live, combining DSA + object-oriented LLD (Strategy, Factory, Singleton, and Flyweight patterns with live requirement changes, plus explicit boundary, stress, and security test cases).

    2. System Design & 2026 AI Judgment Round (60 to 70 Minutes): L61–L64 loops probe Azure-scale distributed systems from scratch (CAP theorem trade-offs, Redis caching, database sharding, consistent hashing, ZooKeeper coordination—rejected Senior SDEs most often cite insufficient HLD depth!), alongside Microsoft's 2025–2026 AI fluency evaluation—observing how you prompt an AI coding assistant, audit every generated diff, and prevent LLM hallucinations in production!

    3. The "As Appropriate" (AA) Executive Final & STAR(R) Reflection: Microsoft's final round is led by a senior Engineering Manager or Partner (historically dubbed "As Appropriate" because only candidates clearing earlier bars reached the AA). Microsoft appends a mandatory second R to STAR—STAR(R): Situation, Task, Action, Result, and Reflection (what you learned and what you do differently today). Prepare specifically for conflict with a tech lead or architect (the #1 reported 2026 Microsoft behavioral question), accountability after a production miss, and growth mindset.

    4. Verified 2026 Microsoft Software Engineer Compensation (Levels 59 to 66, 4-Year Even 25% Vesting):

    5. United States (Redmond/Bellevue, Bay Area, NYC, Atlanta, Reston): Level 59 (Entry SDE) sits at 166,244 USD median (~129,000 USD base), Level 60 (SDE) averages 180,704 USD (137,825 USD base + 28,917 USD/year stock + 13,962 USD bonus), Level 61 (SDE II) averages ~197,000 USD, Level 62 (SDE II) averages 213,297 USD (171,125 USD base + 28,447 USD/year stock + 13,725 USD bonus), Level 63 (Senior SDE) hits 237,611 to 248,000 USD median (Level 64 around 281,000 to 300,000 USD), and Levels 65–66 (Principal SDE) span 346,000 to 390,000+ USD (where annual stock grants begin exceeding base salary, plus ~30,000 USD median one-time US sign-on bonus).

    6. India Hubs (Hyderabad & Bengaluru): Level 59 sits at 26.9 lakhs INR median (~3.0 lakhs INR median sign-on), Level 62 (SDE II) averages 64.8 lakhs INR (40.2 lakhs base + 21.8 lakhs stock + 2.8 lakhs bonus), and Level 63 (Senior SDE) hits 70.0 lakhs INR median (90 to 100+ lakhs INR at Level 64).

    7. United Kingdom (London, Reading, Cambridge): Level 59 sits at 57,649 GBP median and Level 63 (Senior SDE) reaches 113,224 GBP median (Greater London overall SWE median ~147,476 USD).

    How I Use Linkjob AI for Blind-Submit Microsoft Codility OAs & STAR(R) Loops

    Because a transparent desktop overlay already voided a documented Microsoft Codility sitting via focus-loss telemetry, I keep my solo OA hardware 100% clean using Linkjob AI:

    1. Upgraded Dual-Device Mode on Solo Proctored OAs (AI Glasses + Smartphone = 100% Zero Software on My Testing Computer): Whether a recruiter enables Codility focus-loss logging, webcam snapshots, prompt-copy detection, or LockDown Browser, Dual-Device Mode pairs AI glasses directly with my smartphone so my testing computer runs zero Linkjob AI software—no desktop app installed or active, zero overlays on the host monitor, zero Activity Monitor or Task Manager processes, zero laptop hotkeys, zero focus-loss notices, and zero clipboard events. My AI glasses capture the def solution(...) prompt and bottom Assumptions bounds (N <= 100,000, -10^8 .. 10^8) optically off my monitor from a natural posture, and O(N) DP recurrences plus adversarial test cases appear on my smartphone (mobile webpage) resting 1 inch beneath my webcam lens while I hand-type every line cleanly.

    2. Scored AI Mock Interviews & Desktop Floating Window Mode for Codility Live & AA Finals: Ahead of Microsoft's live Codility whiteboard, HLD, and As Appropriate rounds (and on unproctored practice or compatible video calls, completing setup beforehand including Zoom v6.16+ one-time Advanced Capture with Window Filtering), one-click interviewer-only audio isolation prevents spoken STAR(R) Reflection takeaways and consistent-hashing trade-offs from triggering self-echo loops. Every new download includes an automatic 30-minute free trial, and the annual plan sits at 29.99 USD per month billed annually (359.88 USD per year) with uncapped practice across 120+ managed frontier models (Claude Opus 5, GPT-5.6, Gemini 3.5) in 29+ languages.

    My 7-Day Microsoft Codility Prep Plan

    1. Days 1 to 2 — Difference Arrays, Prefix Sums & Caterpillar Sweeps: Drill Circular Character Roll, consecutive-run string filters, and two-pointer caterpillar windows inside Codility's free developer training lessons so def solution(...) and custom test drawers feel familiar.

    2. Days 3 to 4 — Fixed-State O(N) DP & Signed-Negative Bounds: Practice Max Sum of K Non-Adjacent Elements and Domino Sequence initialized with -1018 (never 0!), verifying sub-second execution on N = 100,000 random signed lists.

    3. Day 5 — Iterative Graph BFS & 3-Line Bug-Fixing Discipline: Replace deep recursion with collections.deque BFS (avoiding Python's 1,000 recursion limit!) and practice repairing <= vs. < off-by-one bugs inside a strict 1-to-3-line diff budget.

    4. Days 6 to 7 — One 110-Minute Blind-Submit Simulation & STAR(R) Prep: Run a timed 110-minute, 2-task mock entering 5 custom adversarial inputs per task before submitting, and polish three STAR(R) stories (including lead/architect conflict + explicit Reflection).

    Microsoft Codility FAQ (2026 Candidate Edition)

    Why didn't Codility show my score after I submitted my Microsoft OA?

    Microsoft configures Microsoft Codility CodeCheck links to blind submit: your Correctness, Performance, and Integrity Risk breakdown routes strictly to the recruiter dashboard, so seeing a plain completion screen with zero numeric score is normal and never a rejection signal by itself.

    What score passes the Microsoft Codility test in 2026?

    Microsoft publishes no official cutoff (the 60 percent rumor online comes solely from third-party prep blogs). Because an O(N^2) timeout zeroes out the Performance half of a task on N = 100,000 inputs, aim for O(N) or O(N log N) complexity plus manual custom-input checks across all negative and minimum-length bounds on every task.

    Does Microsoft use Codility or HackerRank in 2026?

    Both run actively by org: Microsoft Codility (90 to 110 minutes, 2 tasks, blind submit) remains the primary global gate across New Grad (L59), SDE (L60), SDE II (L61–L62), and Senior SDE (L63–L64), while select US early-career Online Test Screens send a 75-minute HackerRank link. Always check the sender domain in your invitation email!

    See Also

    My Successful Strategy For Crushing BCG X CodeSignal Test 2026

    Effective Preparation Guide For Capital One Data Analyst CodeSignal Questions

    How I Successfully Passed My TikTok CodeSignal Online Assessment 2026

    My Experience Passing Capital One CodeSignal Questions In 2026

    Using Artificial Intelligence To Pass Microsoft Teams Interview In 2026

    Why People Choose Linkjob AI

    Smoother interviews, coding challenges cleared, and job offers landed. See how users describe their experience with Linkjob AI—in their own words.