Home
Posts
Categories
Series
Tags
About
How to Sort Data
What is Sorting
postedOn: 2024-3-29   updatedOn: 2024-3-29   includedIn: Algorithms
wordsCount: 54   readingTime: 1 min   viewers:

Introduction

What this post focus on

This posting will cover almost every concept of How to sort (primary). Plus, I’ll post realistic algorithm problem of our real world so that you can apply those concept to real world problem and learn how to use it. I really hope so.

Let’s see the below example.

Aaron Oh
고려대코딩개발협동조합 창단 멤버
Table of Contents
Related Posts
Sorting Problem
Problem Jay likes sequences, so he use to playing with a sequence of size N. He will transform the sequence according to K queries, and the format and process of the queries are as follows: L R X: Let’s say the sequence sorted in ascending order is A[1], A[2], …, A[N].
2024-3-29
High Score Kit: Sorting#3
Problem The H-Index is a metric that measures the productivity and impact of a scientist’s research. It represents the highest number h such that the scientist has published h papers that have each been cited at least h times. According to Wikipedia, the H-Index is calculated as follows: For a given scientist who has published n papers, if h of these papers have at least h citations each, and the other papers have no more than h citations each, then h is the maximum value for this scientist’s H-Index.
2024-4-10
High Score Kit: Sorting#2
Problem Given an array of non-negative integers, your task is to determine the largest number that can be formed by concatenating the integers together. For example, with the integers [6, 10, 2], you can form the numbers [6102, 6210, 1062, 1026, 2610, 2106] through different arrangements. The largest number from these combinations is 6210.
2024-4-10
High Score Kit: Sorting#1
Problem To find a number at the k-th position after slicing and sorting the array from the i-th to j-th number, consider the following: For example, if the array is [1, 5, 2, 6, 3, 7, 4], i = 2, j = 5, and k = 3, slicing the array from the 2nd to the 5th number yields [5, 2, 6, 3].
2024-4-10
tuple
Problem A “tuple” is defined as an ordered collection of elements which can include duplicate values and each element is assigned an order. A tuple with n elements (a1, a2, a3, ..., an) can be expressed using the set notation in various ways, with any ordering of the subsets as:
2024-5-1
braket rotating
Problem Define a string as a “valid bracket string” if it follows the given rules: “()”, “[]”, and “{}” are all valid bracket strings. If A is a valid bracket string, then “(A)”, “[A]”, and “{A}” are also valid bracket strings. For example, since “[]” is a valid bracket string, “([])” is also valid.
2024-4-27