Category: sorting
There are many ways to show line numbers when displaying text files. For example, in this article, we know the utility nl can be used to show line numbers …
May 7, 2014
algorithms, code, code library, data structure, implementation, programming languages, sorting, VBA, vbscript, windows, windows scripting host
Among the simple sorting algorithms, the insertion sorting algorithm is my favourite. Insertion sort is simple to implement and gives an average quadratic O(n2) running time, like other simple …
Question: Given an unsorted list of integers, find out the first missing positive. Problem Description: http://oj.leetcode.com/problems/first-missing-positive/ Examples: should return 3; should return 2. Can you do it with O(n) …
October 4, 2013
algorithms, database, implementation, internet, mysql, optimization, php, programming languages, search, SEO, sorting, technical, tricks
I have created an online page that allows people to upload any single photo to server. The URL to list all the photos (visible) is https://rot47.net/picture-gallery To add a photo …
Quick Sort is a comparison sorting method, on average, the complexity is . In worst cases, e.g. when the array of elements are already sorted, it is degraded into …