Click here to Skip to main content
15,886,422 members

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrassing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
GeneralRe: where can i post my course url here without being banned? Pin
Richard MacCutchan28-Jan-20 22:14
mveRichard MacCutchan28-Jan-20 22:14 
GeneralBubble Sort, O(N^2) aka Quadratic time Pin
raddevus27-Jan-20 5:38
mvaraddevus27-Jan-20 5:38 
GeneralRe: Bubble Sort, O(N^2) aka Quadratic time PinPopular
Nelek27-Jan-20 8:01
protectorNelek27-Jan-20 8:01 
GeneralRe: Bubble Sort, O(N^2) aka Quadratic time Pin
raddevus27-Jan-20 8:10
mvaraddevus27-Jan-20 8:10 
GeneralRe: Bubble Sort, O(N^2) aka Quadratic time Pin
Nelek27-Jan-20 8:15
protectorNelek27-Jan-20 8:15 
GeneralRe: Bubble Sort, O(N^2) aka Quadratic time Pin
raddevus27-Jan-20 8:38
mvaraddevus27-Jan-20 8:38 
GeneralRe: Bubble Sort, O(N^2) aka Quadratic time Pin
agolddog29-Jan-20 3:26
agolddog29-Jan-20 3:26 
GeneralRe: Bubble Sort, O(N^2) aka Quadratic time Pin
raddevus29-Jan-20 4:23
mvaraddevus29-Jan-20 4:23 
agolddog wrote:
It's great that you're interested enough to implement these things yourself in sample code, to ensure you understand the concepts, but don't reinvent the wheel in real code.

Definitely agree. I'm on chapter 10 now where the book teaches quicksort and the value of recursion in this scope. The author also states :

Quote:
In previous chapters, we’ve encountered a number of sorting algorithms, including Bubble Sort, Selection Sort, and Insertion Sort. In real life, however, none of these methods are actually used to sort arrays. Most computer languages have built-in sorting functions for arrays that save us the time and effort from implementing our own. And in many of these languages, the sorting algorithm that is employed under the hood is Quicksort.

THis is why this is a really great book, because the author explicitly makes statements like that.
GeneralRe: Bubble Sort, O(N^2) aka Quadratic time Pin
raddevus27-Jan-20 10:27
mvaraddevus27-Jan-20 10:27 
GeneralRe: Bubble Sort, O(N^2) aka Quadratic time Pin
Nelek27-Jan-20 12:53
protectorNelek27-Jan-20 12:53 
GeneralRe: Bubble Sort, O(N^2) aka Quadratic time Pin
Sander Rossel9-Mar-20 0:15
professionalSander Rossel9-Mar-20 0:15 
GeneralRe: Bubble Sort, O(N^2) aka Quadratic time Pin
Nelek9-Mar-20 1:42
protectorNelek9-Mar-20 1:42 
GeneralRe: Bubble Sort, O(N^2) aka Quadratic time Pin
Jon McKee27-Jan-20 13:35
professionalJon McKee27-Jan-20 13:35 
GeneralRe: Bubble Sort, O(N^2) aka Quadratic time Pin
raddevus28-Jan-20 1:39
mvaraddevus28-Jan-20 1:39 
GeneralRe: Bubble Sort, O(N^2) aka Quadratic time Pin
Amarnath S27-Jan-20 13:57
professionalAmarnath S27-Jan-20 13:57 
GeneralRe: Bubble Sort, O(N^2) aka Quadratic time Pin
raddevus28-Jan-20 1:41
mvaraddevus28-Jan-20 1:41 
GeneralRe: Bubble Sort, O(N^2) aka Quadratic time Pin
maze328-Jan-20 22:34
professionalmaze328-Jan-20 22:34 
GeneralRe: Bubble Sort, O(N^2) aka Quadratic time Pin
raddevus29-Jan-20 2:14
mvaraddevus29-Jan-20 2:14 
GeneralRe: Bubble Sort, O(N^2) aka Quadratic time Pin
RugbyLeague29-Jan-20 21:17
RugbyLeague29-Jan-20 21:17 
GeneralRe: Bubble Sort, O(N^2) aka Quadratic time Pin
englebart29-Jan-20 3:23
professionalenglebart29-Jan-20 3:23 
GeneralRe: Bubble Sort, O(N^2) aka Quadratic time Pin
Jon McKee30-Jan-20 9:16
professionalJon McKee30-Jan-20 9:16 
GeneralRe: Bubble Sort, O(N^2) aka Quadratic time Pin
englebart30-Jan-20 9:28
professionalenglebart30-Jan-20 9:28 
GeneralRe: Bubble Sort, O(N^2) aka Quadratic time Pin
Kirk 103898212-Feb-20 16:37
Kirk 103898212-Feb-20 16:37 
GeneralRe: Bubble Sort, O(N^2) aka Quadratic time Pin
John R. Shaw26-Mar-20 20:55
John R. Shaw26-Mar-20 20:55 
GeneralMy very own accidental DoS program Pin
kmoorevs15-Jan-20 10:34
kmoorevs15-Jan-20 10:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.