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

New No-Code Track! 🚀 New videos dropping every week—start learning today!

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

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

  • 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
    • Community Projects
    • Live Sessions
    • 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
  • Community Projects Live Sessions 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
  • evilthread
    evilthread
    135 Points

    Help fixing Ruby "is sorted" function please

    Posted January 12, 2023 9:36pm 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 November 2, 2020 11:13am 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 October 27, 2020 11:13am 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 June 7, 2020 1:21pm 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 November 6, 2019 6:47pm 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 October 31, 2019 7:51am 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 September 29, 2019 6:17pm 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 September 5, 2019 4:19am 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 July 29, 2019 7:47pm 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 December 22, 2018 3:35pm 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 November 7, 2018 1:41am 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 September 21, 2018 3:10am 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 September 21, 2018 12:29am 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.