← Home
/
Coding Problems
/
UNSW
/
COMP2521
中文
UNSW
COMP2521
60 problem(s)
Practice coding problems for free with online autotest. Sign in to run and submit.
Arrays: Longest Strictly-Increasing Run
Easy
c-dcc
Arrays: Reverse In Place
Easy
c-dcc
AVL Tree: Self-balancing Insert
Medium
c-dcc
AVL Tree: Height After Inserts
Hard
c-dcc
Complexity: Count a Triangular Double Loop
Easy
c-dcc
Complexity: Multiplications in Matrix Multiply
Easy
c-dcc
BST: Insert & Search
Medium
c-dcc
BST: k-th Smallest
Medium
c-dcc
Binary Tree: Height
Easy
c-dcc
Binary Tree: Count Leaves
Easy
c-dcc
Euler: Count Odd-Degree Vertices
Easy
c-dcc
Euler: Circuit / Path / None
Easy
c-dcc
BFS: Number of Reachable Vertices
Medium
c-dcc
BFS: Shortest Unweighted Distance
Medium
c-dcc
BFS: Bipartite Check
Hard
c-dcc
DFS: Count Connected Components
Medium
c-dcc
DFS: Does a Path Exist
Easy
c-dcc
DFS: Detect Cycle (Directed)
Hard
c-dcc
Graph: Build the Adjacency Matrix
Easy
c-dcc
Graph: Maximum In/Out Degree Difference
Medium
c-dcc
Hash Table: Bucket Sizes
Easy
c-dcc
Hash Table: Longest Chain
Easy
c-dcc
Heap: Insert (sift-up)
Medium
c-dcc
Heap: Delete-max (sift-down)
Medium
c-dcc
Heap: k-th Largest
Hard
c-dcc
Linked List: Build and Print
Easy
c-dcc
Linked List: Recursive Sum
Easy
c-dcc
MST: Total Weight
Medium
c-dcc
MST: Largest Edge in the MST
Medium
c-dcc
Queue: Simulate Dequeue Order
Medium
c-dcc
Queue: Final Contents
Medium
c-dcc
Recursion: Factorial
Easy
c-dcc
Recursion: Tower of Hanoi
Medium
c-dcc
Recursion: Subset Sum
Hard
c-dcc
Sorting: Ascending Order
Easy
c-dcc
Sorting: Stable Sort by Key
Medium
c-dcc
Sorting: Count Inversions
Hard
c-dcc
Stack: Balanced Brackets
Medium
c-dcc
Stack: Decimal to Binary
Easy
c-dcc
Tree Traversal: Pre / In / Post-order
Medium
c-dcc
Tree Traversal: Level Order (BFS)
Medium
c-dcc
Trie: count stored words
Easy
c-dcc
Trie: is it a stored word
Medium
c-dcc
2-3-4 Node: which child
Easy
c-dcc
2-3-4 Tree: root after insertions
Medium
c-dcc
Binary Search: Index of Target
Easy
c-gcc
Stack ADT: PUSH / POP
Easy
c-gcc
Stable Sort by Score
Easy
python3
Priority Queue: insert / extract-max
Medium
python3
Dijkstra: Shortest Distances from 0
Medium
python3
Topological Order (lexicographically smallest)
Medium
python3
21T3 Q6 — Stable sort of students
Hard
c-gcc
21T3 Q7 — Is the digraph a binary tree?
Hard
c-gcc
21T3 Q8 — Sum of odd values (rebuild tree)
Hard
c-gcc
24T2 Q8 — Append two lists
Medium
c-gcc
21T3 Q9 — Number of reachable vertices
Hard
c-gcc
24T2 Q9 — Longest increasing run
Hard
c-gcc
24T2 Q10 — Max |in-deg − out-deg|
Medium
c-gcc
24T2 Q11 — Day trip
Hard
c-gcc
24T2 Q12 — Min difference on a BST level
Hard
c-gcc