Sorting
Everything on SkillVeris tagged Sorting — collected across the glossary, study notes, blog, and cheat sheets.
17 resources across 2 libraries
Study Notes(8)
Ordering with OrderBy
Learn how LINQ's OrderBy and OrderByDescending sort sequences, how ThenBy chains secondary sort keys, and how sort stability and custom comparers work.
Filtering, Sorting, and Paging
Building efficient, parameterized queries with Where, OrderBy, and Skip/Take, plus the tradeoffs of offset versus keyset pagination.
Sorting and Grouping
Learn to order pipeline output with Sort-Object and cluster it into buckets with Group-Object, including combining both with Measure-Object for reports.
Sorting Algorithms in C
Learn bubble sort in C step by step, with an overview of selection and insertion sort and correct time complexity analysis.
Sorting Algorithms Overview
A survey of classic sorting algorithms, their complexities, stability, and when to choose each one.
Sorting with ORDER BY
Control the order of query results using the ORDER BY clause with ascending or descending sorts.
Sorting and Ranking
How to order DataFrames and Series with sort_values and sort_index, and how to assign competitive ranks to values with the rank method and its tie-breaking str…
Sorting and Cutting Text with sort, cut, uniq
Combine sort, cut, and uniq to reorder lines, extract specific columns, and deduplicate or count repeated entries in text data pipelines.
Interview Questions(9)
What is the Difference Between GROUP BY and ORDER BY?
GROUP BY aggregates rows that share a common value into summary rows, while ORDER BY simply sorts the result set without changing how many rows are returned.
What is Big O Notation?
Big O notation describes how an algorithm’s running time or memory usage grows as the input size grows, focusing on the dominant term and ignoring constant fac…
What is the Dutch National Flag Problem?
The Dutch National Flag problem asks you to sort an array containing only three distinct values (classically 0s, 1s, and 2s) into three contiguous groups in a…
What is the Interval Scheduling Problem?
The interval scheduling problem asks for the maximum number of non-overlapping intervals you can select from a set, and it is solved optimally with a greedy st…
How Do You Solve the Merge Intervals Problem?
The merge intervals problem asks you to collapse a set of possibly-overlapping intervals into the minimal set of non-overlapping intervals that cover the same…
How Do You Solve the Insert Interval Problem?
The insert interval problem gives you an already-sorted, non-overlapping list of intervals plus one new interval to add, and asks you to insert it while mergin…
What is the Activity Selection Problem?
The activity selection problem is the classic greedy exercise of choosing the maximum number of non-conflicting activities from a set given each activity's sta…
What is the Fractional Knapsack Problem?
The fractional knapsack problem asks you to fill a capacity-limited knapsack with items that can be broken into fractions, maximizing total value by always tak…
What Does Array Sort Stability Mean?
A sort is stable when elements that compare as equal under the comparator retain their original relative order in the output, and modern JavaScript engines gua…