✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

🤑 Join the Treehouse affiliate program and earn 25% recurring commission!

New No-Code Track! 🚀start learning today!

🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

🤑 Join the Treehouse affiliate program and earn 25% recurring commission!

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
    • Showing results for:
    • Computer Science
    • Algorithms: Sorting and Searching
    • Close
  • evilthread
    evilthread
    135 Points

    Help fixing Ruby "is sorted" function please

    Posted on Jan 12, 2023 by evilthread
    evilthread
    135 Points
    • Computer Science
    • Algorithms: Sorting and Searching
    • Sorting Algorithms
    • Bogosort

    0 Answers

  • Kris Reid
    Kris Reid
    17,136 Points

    Binary Search - new midpoint?

    Posted on Nov 2, 2020 by Kris Reid
    Kris Reid
    17,136 Points
    • Computer Science
    • Algorithms: Sorting and Searching
    • Searching Names
    • Binary Search

    1 Answer

  • Mike Straw
    Mike Straw
    7,100 Points

    Is there a case where it will be faster to quicksort + binary search an unsorted list instead of using linear search?

    Posted on Oct 27, 2020 by Mike Straw
    Mike Straw
    7,100 Points
    • Computer Science
    • Algorithms: Sorting and Searching
    • Searching Names
    • Big O Runtime of Search Algorithms

    0 Answers

  • Caesar Bell
    Caesar Bell
    24,873 Points

    Found a bug with your JS approach

    Posted on Jun 7, 2020 by Caesar Bell
    Caesar Bell
    24,873 Points
    • Computer Science
    • Algorithms: Sorting and Searching
    • Searching Names
    • Code for Binary Search

    1 Answer

  • Paige Jones
    Paige Jones
    20,144 Points

    What language does this course use for examples?

    Posted on Nov 6, 2019 by Paige Jones
    Paige Jones
    20,144 Points
    • Computer Science
    • Algorithms: Sorting and Searching
    • Sorting Algorithms
    • Sorting and Searching

    2 Answers

  • Ankush Sharma
    Ankush Sharma
    844 Points

    You'll need a load.py file saved in the same directory as the bogosort.py file, with the following contents.

    Posted on Oct 31, 2019 by Ankush Sharma
    Ankush Sharma
    844 Points
    • Computer Science
    • Algorithms: Sorting and Searching
    • Sorting Algorithms
    • Bogosort

    1 Answer

  • amyyxt
    amyyxt
    2,227 Points

    In practice, how often is sorting + binary search preferred over linear search?

    Posted on Sep 29, 2019 by amyyxt
    amyyxt
    2,227 Points
    • Computer Science
    • Algorithms: Sorting and Searching
    • Searching Names
    • Timing Our Search Scripts

    1 Answer

  • Ernesto Salazar
    Ernesto Salazar
    21,555 Points

    how is the algorithm sorting the list?

    Posted on Sep 5, 2019 by Ernesto Salazar
    Ernesto Salazar
    21,555 Points
    • Computer Science
    • Algorithms: Sorting and Searching
    • Searching Names
    • Sorting Names

    2 Answers

  • Luc Charbonneau
    Luc Charbonneau
    1,789 Points

    Can one of the lists have more than one value by the end of the merge loop. Jay Keeps saying "a" value. Incorrect?

    Posted on Jul 29, 2019 by Luc Charbonneau
    Luc Charbonneau
    1,789 Points
    • Computer Science
    • Algorithms: Sorting and Searching
    • Sorting Algorithms
    • Merge Sort

    1 Answer

  • Christopher Kehl
    Christopher Kehl
    18,180 Points

    Where are the files for Algorithms: Sorting and Searching module?

    Posted on Dec 22, 2018 by Christopher Kehl
    Christopher Kehl
    18,180 Points
    • Computer Science
    • Algorithms: Sorting and Searching
    • Sorting Algorithms
    • Selection Sort

    2 Answers

  • Daniel Breen
    Daniel Breen
    14,943 Points

    Nothing Prevents The Return Statement From Executing. How does this work?

    Posted on Nov 7, 2018 by Daniel Breen
    Daniel Breen
    14,943 Points
    • Computer Science
    • Algorithms: Sorting and Searching
    • Sorting Algorithms
    • Implementing Quicksort

    1 Answer

  • Carel Du Plessis
    PLUS
    Carel Du Plessis
    Courses Plus Student 16,356 Points

    can i see example of code in C# for all the Instruction Code in this course

    Posted on Sep 21, 2018 by Carel Du Plessis
    Carel Du Plessis
    Courses Plus Student 16,356 Points
    • Computer Science
    • Algorithms: Sorting and Searching
    • Sorting Algorithms
    • Code for Merge Sort

    2 Answers

  • Carel Du Plessis
    PLUS
    Carel Du Plessis
    Courses Plus Student 16,356 Points

    Can i see this example in C# (Instruction Code for Bogosort)

    Posted on Sep 21, 2018 by Carel Du Plessis
    Carel Du Plessis
    Courses Plus Student 16,356 Points
    • Computer Science
    • Algorithms: Sorting and Searching
    • Sorting Algorithms
    • Code for Bogosort

    1 Answer

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

    Treehouse

  • About
  • Blog
  • Careers
  • Community
  • Stories
  • Shop
  • Contact
  • Gift Card

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.