Click here to Skip to main content
15,896,912 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Not a programming question... Pin
harold aptroot19-Feb-15 10:19
harold aptroot19-Feb-15 10:19 
GeneralRe: Not a programming question... Pin
Sander Rossel20-Feb-15 12:04
professionalSander Rossel20-Feb-15 12:04 
GeneralRe: Not a programming question... Pin
harold aptroot20-Feb-15 22:10
harold aptroot20-Feb-15 22:10 
GeneralRe: Not a programming question... Pin
Sander Rossel21-Feb-15 1:14
professionalSander Rossel21-Feb-15 1:14 
GeneralRe: Not a programming question... Pin
harold aptroot21-Feb-15 1:39
harold aptroot21-Feb-15 1:39 
GeneralRe: Not a programming question... Pin
Sander Rossel21-Feb-15 2:49
professionalSander Rossel21-Feb-15 2:49 
AnswerRe: Not a programming question... Pin
Marc Clifton19-Feb-15 9:30
mvaMarc Clifton19-Feb-15 9:30 
GeneralRe: Not a programming question... Pin
Sander Rossel19-Feb-15 10:02
professionalSander Rossel19-Feb-15 10:02 
That's the conclusion I made too, but what I understand from various sources is that we go through n iterations, where the lowest value for that iteration is swapped with the element at position n and the next iterations starts at element n+1. So when we have {2, 3, 1} we swap 1 and 2 in the first iteration, start at 3 in the second iteration (and swap it with 2) and start at 3 in the last iteration (do nothing) and we're done.
And that makes sense, because why would you want to check elements that you know are sorted?
My blog[^]
C#
public class SanderRossel : Lazy<Person>
{
   public void DoWork()
   {
      throw new NotSupportedException();
   }
}

GeneralRe: Not a programming question... Pin
Richard Deeming19-Feb-15 10:26
mveRichard Deeming19-Feb-15 10:26 
GeneralRe: Not a programming question... Pin
Sander Rossel20-Feb-15 11:55
professionalSander Rossel20-Feb-15 11:55 
AnswerRe: Not a programming question... Pin
Worried Brown Eyes20-Feb-15 1:06
Worried Brown Eyes20-Feb-15 1:06 
GeneralJust discovered this 6 year old gem Pin
Marc Clifton19-Feb-15 8:15
mvaMarc Clifton19-Feb-15 8:15 
GeneralRe: Just discovered this 6 year old gem Pin
PIEBALDconsult19-Feb-15 9:26
mvePIEBALDconsult19-Feb-15 9:26 
GeneralRe: Just discovered this 6 year old gem Pin
Marc Clifton19-Feb-15 9:35
mvaMarc Clifton19-Feb-15 9:35 
GeneralRe: Just discovered this 6 year old gem Pin
Brady Kelly20-Feb-15 2:17
Brady Kelly20-Feb-15 2:17 
GeneralBruce Dickinson undergoes cancer treatment Pin
Wendelius19-Feb-15 6:30
mentorWendelius19-Feb-15 6:30 
GeneralRe: Bruce Dickinson undergoes cancer treatment Pin
jeron119-Feb-15 6:43
jeron119-Feb-15 6:43 
GeneralRe: Bruce Dickinson undergoes cancer treatment Pin
den2k8819-Feb-15 8:00
professionalden2k8819-Feb-15 8:00 
GeneralRe: Bruce Dickinson undergoes cancer treatment Pin
Wendelius19-Feb-15 8:03
mentorWendelius19-Feb-15 8:03 
GeneralRe: Bruce Dickinson undergoes cancer treatment Pin
Uwe Keim19-Feb-15 19:40
sitebuilderUwe Keim19-Feb-15 19:40 
GeneralThought of the day Pin
OriginalGriff19-Feb-15 5:44
mveOriginalGriff19-Feb-15 5:44 
GeneralRe: Thought of the day Pin
HobbyProggy19-Feb-15 5:49
professionalHobbyProggy19-Feb-15 5:49 
GeneralRe: Thought of the day Pin
Afzaal Ahmad Zeeshan19-Feb-15 5:53
professionalAfzaal Ahmad Zeeshan19-Feb-15 5:53 
GeneralRe: Thought of the day Pin
jeron119-Feb-15 6:24
jeron119-Feb-15 6:24 
GeneralRe: Thought of the day Pin
Mark_Wallace19-Feb-15 6:31
Mark_Wallace19-Feb-15 6:31 

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.