• This week's missions: Connect Stars and Sort by Removing

checkio

Good day CheckiO users!

Challenge yourself with our latest missions:

The first mission is called Connect Stars created by kurosawa4434 where you should find the minimum spanning tree.

connect_stars([(1, 1), (4, 4)])) == [(0, 1)] # or [(1, 0)]
connect_stars([(1, 1), (4, 1), (4, 4)])) == [(0, 1), (1, 2)] # or [(1, 2), (0, 1)] , [(1, 0), (2,1)] etc
connect_stars([(6, 6), (6, 8), (8, 4), (3, 2)])) == [(0, 1), (0, 2), (0, 3)] # or [(2, 0), (0, 3), (1, 0)] etc

The second is Sort by Removing and you have to create the fastest sorting algorithm by removing all elements that are in the incorrect order.

sort_by_removing([3, 5, 2, 6]) == [3, 5, 6]
sort_by_removing([7, 6, 5, 4, 3, 2, 1]) == [7]
sort_by_removing([3, 3, 3, 3]) == [3, 3, 3, 3]
sort_by_removing([5, 6, 7, 0, 7, 0, 10]) == [5, 6, 7, 7, 10]
sort_by_removing([1, 5, 2, 3, 4, 7, 8]) == [1, 5, 7, 8]

The previous week’s missions were: Workout and Home Coming. Check out the leaderboard, which should be open if you have solved them, and find out which solution was the best!

    Highlights from the world of Python:
  • (sponsored) MentorBot is an amazingly easy way for an IT mentors and students to find each other. If you are looking to improve your skills and learn something new, you’ll be able to find a mentor of Java, Python, JavaScript, C#, DevOps, PHP, QA and other techs. If you want to teach and help others, you’ll be able to find your students here. (Note. It’s a Russian-language link.)
  • You are confused by all the tools for managing dependencies? Then you totally have to check out an Overview of python dependency management tools! You’ll find a brief description of each tool, why it’s created and the problems it’s tackling. There is also the table that summarizes all the information and the usual setups people use.
  • Take a look at a course on Practical Python Programming. It’s objective is to cover foundational aspects of Python programming with an emphasis on script writing, data manipulation, and program organization. By the end of this course, you should be able to start writing useful Python programs or be able to understand and modify Python code written by others.

Also we have released some changes in the mission creation process to make it faster and easier to create. It includes:

- webhook for automate synchronization;

- autofill.sh for a faster autofill command call.

Check out the updated blog post for more info.

Our congratulations to the winner of May 2020 - --Serial_Sniper-- - you are totally Awesome and we are very glad to have you here with us!

Become Awesome

  • No Ads
  • No Limits
  • More Content

Welcome to CheckiO - games for coders where you can improve your codings skills.

The main idea behind these games is to give you the opportunity to learn by exchanging experience with the rest of the community. Every day we are trying to find interesting solutions for you to help you become a better coder.

Join the Game