Added: 3 years ago
From: chandubabacoder
Views: 6,822
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (5)

Sign In or Sign Up now to post a comment!
  • where the fuck is the sound man! how are we supposed to learn from this!

  • Great vid !

    Would there be any difference if I were to change the following line in the selection sort

    for(int i = 0 ; i < a.length ; i++)

    instead of

    i < a.length - 1;

  • thank u!

    See the inner loop... its starting from i+1. So if number of numbers is suppose 10 (0 to 9), it would check for numbers in index i=8 to j=9. But if you write that loop you pointed out then it would check for i=9 and j=10.. but that wont happen cause j<10 in the condition of second loop.

    It wont make any difference but it won't be efficient. I might not be clear. If any problem please ask again :)

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more