PAU OJ Online Judge
ProblemsLearnStudy plansContestsSubmissionsRank

Updates

Announcements and upcoming contests

Loading announcements…
Sign in for personal alertsBrowse contests
Log inSign up

PAU OJ

PrimeAsia University Online Judge

A real online judge for programming practice, university contests and coding assessments. Write code in your browser, get sandboxed verdicts, and track your progress.

Platform

  • Problems
  • Contests
  • Submissions
  • Ranking
  • Reviewers

Resources

  • User guide
  • Changelog
  • How judging works
  • System health
  • Create an account

© 2026 PrimeAsia University Online Judge. All rights reserved.

v0.9.0

Practice

Problems

227 problems ready for you. Filter by difficulty or tag, then open the editor.

DifficultyAllEasyMediumHardExpert
Tags
Clear
0-1 BFS0/11D DP2D Difference Array2D Prefix SumActivity SelectionAll PairsAmortisedAnalyticsAncestorArgmaxArraysAssignmentAvailabilityBFSBITBackoffBacktrackingBackward DPBase62Bellman-FordBinaryBinary ExponentiationBinary Indexed TreeBinary LiftingBinary SearchBinary Search TreeBinary Search on AnswerBinary TreesBinary TrieBipartiteBipartite MatchingBit ManipulationBitmaskBitonicBitwise ANDBlocksBottleneckBoundedBounded EdgesBranchingBuild CacheBuild ContextCDNCI/CDCachingCapacity PlanningCode ReviewCoin ChangeCoinsCollaborationCombinatoricsComplexityConcatenationConditionalsConnected ComponentsConsistent HashingConstraint SatisfactionContainersCoordinate CompressionCountingCustom ComparatorCycle DetectionDAGDDLDFSDMLDPDSUDecompositionDegreeDeleteDeployment GateDequeDevOpsDiameterDifference ArrayDigitsDijkstraDinicDistanceDivide and ConquerDivisorsDockerDocker ComposeDynamic ProgrammingEdit DistanceEncodingEstimationEuler TotientEuler TourEventual ConsistencyExchange ArgumentExpressionFactorialFactorialsFalling PathFenwick TreeFibonacciFloyd-WarshallFormulasFrequencyFrogGCDGame TheoryGeometryGitGitHubGitHub ActionsGraphsGreedyGreedy CheckGridGroupedGrundy NumberHLDHash MapHash SetHashingHealthcheckHeapHeap SortHeapsHeightHistogramHuffmanIdempotencyImplementationIn-PlaceIncidentIndependent SetIndexesInorderInput OutputInterval DPInterval SchedulingIntervalsInversionsJosephusK-way MergeKMPKadaneKnapsackKruskalLCALCMLCSLISLRULatencyLazyLazy PropagationLeafLeavesLevel OrderLevelsLinear RecurrenceLinked Hash MapLinked ListLoad BalancingLoopsLower BoundLucas TheoremMSTMatchingMathMatrixMatrix BuildMatrix ExponentiationMax FlowMaximumMedianMemoisationMemoizationMergeMerge ConflictMerge Sort TreeMergingMin CutMinimumMinimum PathModular ArithmeticModuloMonotonic QueueMonotonic StackMulti-sourceMulti-stage BuildMultisetNegative CycleNetwork FlowNimNumber TheoryOffline QueriesOnline ConnectivityOnline QueriesOrder StatisticsOrdered DictOrderingPalindromePalindromesParityParsingPartitionPathPath QueryPath UpdatePatternPaymentsPerformancePermutationPoint UpdatePointersPostorderPrefixPrefix SumPrefix SumsPrefix XORPreorderPrime FactorizationPrimesPriority QueueProduction ReviewProjectPruningQueriesQueueRange AssignRange QueryRange UpdateRate LimitingReachabilityRebalancingReconstructionRecoveryRecursionReleaseReliabilityRemoteReplicationRerootingRetryReversalRollbackRound RobinRuntimeSLOSQLSTLSchedulingSearchSecretsSecuritySegment TreeSelectionSetShardingShortest PathSieveSimulationSliding WindowSortingSparse TableSprague-GrundySquaresStackState ExpansionState MachineStringString MatchingStringsSubarraySubarraysSubset SumSubsetsSubstringSubtreeSubtree QuerySumSweep LineSymmetrySystem DesignTSPTTLToken BucketTop-KTopological SortTransactionsTraversalTreeTreesTriangleTrieTwo BagsTwo HeapsTwo PointersTwo SumTwo WalkersTwo's ComplementURL ShortenerUnboundedUnion FindUpper BoundValidationVersion ControlViewsWeighted DistanceWord BreakXORZ AlgorithmZigzagbasics
StatusProblemTagsDifficultyAcceptancePoints
Minimum and Its Count

learn-m6-segment-tree-x2

CountingRange QuerySegment Tree
CountingRange QuerySegment Tree
Easy
0.0%(0/0)
100
Range Maximum with Updates

learn-m6-segment-tree-e2

MaximumRange QuerySegment Tree
MaximumRange QuerySegment Tree
Easy0.0%(0/0)100
Range Product Modulo

learn-m6-segment-tree-e3

Modular ArithmeticRange QuerySegment Tree
Modular ArithmeticRange QuerySegment Tree
Easy0.0%(0/0)100
Add and Range Sum

learn-m6-fenwick-tree-g1

Binary Indexed TreeFenwick TreeRange Query
Binary Indexed TreeFenwick TreeRange Query
Easy0.0%(0/0)100
Score Range Counter

learn-m6-fenwick-tree-g2

CountingFenwick TreeFrequency
CountingFenwick TreeFrequency
Easy0.0%(0/0)100
Range Add, Point Query

learn-m6-fenwick-tree-e1

Difference ArrayFenwick TreeLazy
Difference ArrayFenwick TreeLazy
Easy0.0%(0/0)100
Add on a Loaded Board

learn-m6-fenwick-tree-e2

Binary Indexed TreeFenwick TreePrefix Sum
Binary Indexed TreeFenwick TreePrefix Sum
Easy0.0%(0/0)100
Cutoff Count

learn-m6-fenwick-tree-e3

Fenwick TreeFrequencyOnline Queries
Fenwick TreeFrequencyOnline Queries
Easy0.0%(0/0)100
Range GCD Query

learn-m6-sparse-table-lca-g1

GCDRange QuerySparse Table
GCDRange QuerySparse Table
Easy0.0%(0/0)100
Lowest Common Ancestor

learn-m6-sparse-table-lca-g2

Binary LiftingLCATrees
Binary LiftingLCATrees
Easy0.0%(0/0)100
Distance Between Nodes

learn-m6-sparse-table-lca-e1

DistanceLCATrees
DistanceLCATrees
Easy0.0%(0/0)100
Ancestor Check

learn-m6-sparse-table-lca-x2

AncestorEuler TourTrees
AncestorEuler TourTrees
Easy0.0%(0/0)100
Range AND Query

learn-m6-sparse-table-lca-e2

Bit ManipulationRange QuerySparse Table
Bit ManipulationRange QuerySparse Table
Easy0.0%(0/0)100
Meeting Point of Three

learn-m6-sparse-table-lca-e3

Binary LiftingLCATrees
Binary LiftingLCATrees
Easy0.0%(0/0)100
Static Path Sum

learn-m6-hld-g1

LCAPath QueryTrees
LCAPath QueryTrees
Easy0.0%(0/0)100
Path Max with Updates

learn-m6-hld-g2

Path QueryPoint UpdateTrees
Path QueryPoint UpdateTrees
Easy0.0%(0/0)100
Busiest Node on Path

learn-m6-hld-e1

ArgmaxPath QueryTrees
ArgmaxPath QueryTrees
Easy0.0%(0/0)100
Nodes on the Path

learn-m6-hld-x1

DistanceLCATrees
DistanceLCATrees
Easy0.0%(0/0)100
Subtree Size Queries

learn-m6-hld-e2

DFSSubtreeTrees
DFSSubtreeTrees
Easy0.0%(0/0)100
Ancestor Check Queries

learn-m6-hld-e3

DFSEuler TourTrees
DFSEuler TourTrees
Easy0.0%(0/0)100
1…8910…12