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

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

DifficultyAllEasyMediumHardExpert
Tags
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
Level Order Line by Line

learn-m4-tree-traversals-x1

BFSBinary TreesLevel Order
BFSBinary TreesLevel Order
Easy
0.0%(0/0)
100
Zigzag Level Order

learn-m4-tree-traversals-x2

BFSBinary TreesZigzag
BFSBinary TreesZigzag
Medium0.0%(0/0)200
Widest Tree Level

learn-m4-tree-traversals-e2

BFSBinary TreesLevels
BFSBinary TreesLevels
Easy0.0%(0/0)100
Leaf Values Left to Right

learn-m4-tree-traversals-e3

Binary TreesDFSLeaves
Binary TreesDFSLeaves
Easy0.0%(0/0)100
Rebuild Tree from Preorder and Postorder

learn-m4-tree-traversals-m2

Binary TreesReconstructionTraversal
Binary TreesReconstructionTraversal
Medium0.0%(0/0)200
Tree Diameter in Edges

learn-m4-tree-traversals-m3

Binary TreesDFSDiameter
Binary TreesDFSDiameter
Medium0.0%(0/0)200
Count Paths with Sum K

learn-m4-tree-traversals-h2

Binary TreesDFSPrefix Sums
Binary TreesDFSPrefix Sums
Hard0.0%(0/0)300
K-th Largest Number

learn-m4-heaps-priority-queues-g1

HeapSelectionTop-K
HeapSelectionTop-K
Easy0.0%(0/0)100
Top K Frequent Values

learn-m4-heaps-priority-queues-g2

Hash MapHeapTop-K
Hash MapHeapTop-K
Easy0.0%(0/0)100
Smash the Stones

learn-m4-heaps-priority-queues-e1

GreedyHeapSimulation
GreedyHeapSimulation
Easy0.0%(0/0)100
Minimum Meeting Rooms

learn-m4-heaps-priority-queues-m1

HeapSchedulingSorting
HeapSchedulingSorting
Medium0.0%(0/0)200
Running Median

learn-m4-heaps-priority-queues-h1

HeapMedianTwo Heaps
HeapMedianTwo Heaps
Hard0.0%(0/0)300
K-th Smallest Number

learn-m4-heaps-priority-queues-x1

HeapSelectionTop-K
HeapSelectionTop-K
Easy0.0%(0/0)100
Minimum Cost to Connect Ropes

learn-m4-heaps-priority-queues-x2

GreedyHeapHuffman
GreedyHeapHuffman
Medium0.0%(0/0)200
Heap Sort Ascending

learn-m4-heaps-priority-queues-e2

Heap SortHeaps
Heap SortHeaps
Easy0.0%(0/0)100
K Closest Benches

learn-m4-heaps-priority-queues-e3

GeometryHeapsSelection
GeometryHeapsSelection
Easy0.0%(0/0)100
Task Cooling Gap

learn-m4-heaps-priority-queues-m2

CountingGreedyHeaps
CountingGreedyHeaps
Medium0.0%(0/0)200
Merge K Sorted Lists

learn-m4-heaps-priority-queues-m3

HeapsK-way MergeMerging
HeapsK-way MergeMerging
Medium0.0%(0/0)200
Startup Projects

learn-m4-heaps-priority-queues-h2

GreedyHeapsTwo Heaps
GreedyHeapsTwo Heaps
Hard0.0%(0/0)300
Shuttle Bus Distances

learn-m4-graph-traversal-g1

BFSGraphsShortest Path
BFSGraphsShortest Path
Easy0.0%(0/0)100
1…101112…28