Problem Recently I built a map with custom markers (pins) and a sorting function to display each by type (Member, […]

# Category: Sorting

## Mergesort implementation in Clojure

Problem (defn merge [pred left right] (loop [v [] l left r right] ; v is a vector, so conj […]

## MSD radix sort in C

Problem This time, I have rewritten my radix sort implementation from C++ to C: integer_sort.h: #ifndef INTEGER_SORT_H #define INTEGER_SORT_H #include […]

## Help with comparison counters in quick sort algorithm

Problem At the suggestion of @templatetypedef, I am posting the code for my quick sort to see if anyone can […]

## Calculating the most profit from an array of stock prices

Problem I’m a newbie learning how to code, and I am trying to find the most efficient way to calculate […]

## Quicksort in SAS for sorting datasets

Problem As a challenge for my own amusement, I decided to write a SAS macro for sorting datasets, deliberately avoiding […]

## Tarjan’s Algorithm Python Implementation

Problem I’m planning to use Tarjan’s algorithm for a program in which I would be processing a file, converting the […]

## Optimizing priority queue streaming algorithm in C++

Problem This is a sorting algorithm that I wrote for finding the maximum

## Sort 3×3 grid by rotating 2×2 subgrids

Problem This question originates from this post. Anyway, I’m trying to solve the following problem: Given a 3×3 grid with […]

## Implementing a Sort for an Array

Problem Yesterday, I gave an interview after a long time, and I was asked a question which I couldn’t solve […]