← Quant playground

Free practice library

Interview practice

Solve complete questions with progressive hints, worked solutions and Python implementations. Each question explains its assumptions and source match. Original interpretations are labelled explicitly.

752

Ready to practise

174

Not yet playable

926

Catalogue titles

Public standard problems and original exercises; hidden Trading Interview questions have not been verified.

174 titles have been investigated but remain unresolved. Their missing details are recorded without adding substitute exercises. Every playable question has a guided animated answer; selected questions also have custom diagrams.

Practise Learnr’s own questions →Follow a role-specific curriculum →

752 matching entries · page 1 of 16

Programming · Medium

Maximum Subarray Sum

Supported standard problem · Match confidence: high

Company use unverified
About this question’s source match

The title and Programming / Array and List Processing classification fit the linked public problem. This entry uses an independently worded practice statement and original implementation. The public title and category identify a standard problem family; the private Trading Interview statement has not been inspected.

Implement solve(nums) returning the greatest sum of a nonempty contiguous subarray. Reject empty input with ValueError. Negative entries are allowed.

Assumptions and constraints

  • At least one element is required.
  • 1 <= n <= 1000000

Examples

nums=[-5,3,-1,4,-8]
→ 6

The subarray 3,-1,4 sums to 6.

Company evidence · unverified

No company-specific source has been matched to this exercise. Its references support the topic or solution method; they do not establish employer use.

References

Read the supporting material without leaving your question.

  • leetcode.com

    Maximum Subarray — LeetCode

    Public problem definition only; Learnr examples, boundary extensions, solution explanation and implementation are independently authored. Does not establish the private catalogue statement.

Catalogue metadata captured 2026-10-12. Metadata source.