Topological Sorting

2021 VietMX 0

You are given a directed graph with $n$ vertices and $m$ edges. You have to number the vertices so that every edge leads from the vertex with […]

Sorting in Java

2021 VietMX 0

1. Overview This article will illustrate how to apply sorting to Array, List, Set and Map in Java 7 and Java 8. 2. Sorting With Array Let’s start by sorting integer arrays […]

Sorting by Subsequences

2020 VietMX 0

You are given a sequence a 1, a 2, …, a n consisting of different integers. It is required to split this sequence into the maximum number of subsequences such that after sorting integers in each of […]