• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Ron McLeod
  • Tim Cooke
Sheriffs:
  • Devaka Cooray
  • paul wheaton
  • Mark Herschberg
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
  • Jj Roberts
Bartenders:
  • Carey Brown
  • salvin francis
  • Piet Souris

Games/ Exercises to improve programming with algorithms

 
Ranch Hand
Posts: 113
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
is there a website/ board with algorithm games?

I am looking for exercises to improve my algorithm skills regarding quicksort, merge sort, hashing etc.


Thank you in advance
 
Marshal
Posts: 72059
312
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There is a site called codingbat.com with exercises in to test your ability to code algorithms, but I believe they are simpler than sorting algorithms. That doesn't mean they are at all easy.
 
Saloon Keeper
Posts: 12723
277
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The algorithms you mention are pretty basic. I doubt there will be many puzzles out there that will require you to write a merge sort specifically. Most puzzles these days rely on you knowing how to use your programming language of choice to sort a list or to look up an object in a hash table. The skills they test are more abstract.

If that's not a problem for you, I recommend the following sites:

  • CodinGame
  • Advent of Code
  • HackerRank

  • If you're mathematically inclined, you might also want to check out Project Euler. The first bunch of problems are solvable through brute force or dynamic programming, but after a while you will need to use some hardcode maths, so I don't recommend it for programming puzzles as much as the other sites.
     
    Campbell Ritchie
    Marshal
    Posts: 72059
    312
    • Likes 1
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Agree that Project Euler is intended to test your mathematical ability more than your programming ability.
     
    Ralf Coby
    Ranch Hand
    Posts: 113
    1
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Hi and thank you for the replies.

    As I supposed, there are no algorithm games

    So, I try to create my own algorithm games with the exercises of the math-pages.

    thank you
     
    Ralf Coby
    Ranch Hand
    Posts: 113
    1
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    In case, somebody discovers this thread via Google:

    Go to the websites below to solve problems by implementing the sort and search algorithms like mergesort etc.

    https://www.hackerrank.com/domains/algorithms

    https://www.w3resource.com/c-programming-exercises/basic-algo/index.php

    https://www.w3resource.com/java-exercises/sorting/index.php
     
    Without subsidies, chem-ag food costs four times more than organic. Or this tiny ad:
    the value of filler advertising in 2021
    https://coderanch.com/t/730886/filler-advertising
    reply
      Bookmark Topic Watch Topic
    • New Topic