🔥 Burn Fat Fast. Discover How! 💪

Programming Challenges - How to be a breathtaking Programmer

Logo of telegram channel prograchallenges — Programming Challenges - How to be a breathtaking Programmer P
Logo of telegram channel prograchallenges — Programming Challenges - How to be a breathtaking Programmer
Channel address: @prograchallenges
Categories: Technologies
Language: English
Subscribers: 16.71K
Description from channel

I will make you the best Programmer you can be!
Group of the best friends you can have: https://t.me/joinchat/EXSmZ0dDYKpcZWcLQQH-zw
Challenge ideas: @BinaryByter
Youtube: https://www.youtube.com/channel/UCE_XffNtPkEXej9iDW4f0sw

Ratings & Reviews

4.00

3 reviews

Reviews can be left only by registered users. All reviews are moderated by admins.

5 stars

1

4 stars

1

3 stars

1

2 stars

0

1 stars

0


The latest Messages 13

2021-08-24 10:50:07 Repetition legitimizes
+================+
Count the amount of repetitions in an array

countRepetitions(["cat", "dog", "cat", "cow", "cow", "cow"]) ➞ { cow: 3, cat: 2, dog: 1 }
countRepetitions([1, 5, 5, 5, 12, 12, 0, 0, 0, 0, 0, 0]) ➞ { 0: 6, 5: 3, 12: 2, 1: 1 }
countRepetitions(["Infinity", "null", "Infinity", "null", "null"]) ➞ { null: 3, Infinity: 2}
+==========+
Please answer to this message with your solution :)
Got a challenge Idea? DM it to @BinaryByter for a chance to be featured on this channel!
574 viewsMAXIMILIAN, 07:50
Open / Comment
2021-08-21 10:47:01 The truth and nothing but the truth!
+============================+
Given an array, return the amount of truthy elements the array contains.
Implement it as cleanly as possible!
+==========+
Please answer to this message with your solution :)
Got a challenge Idea? DM it to @BinaryByter for a chance to be featured on this channel!
560 viewsMAXIMILIAN, 07:47
Open / Comment
2021-08-19 10:45:04 FACTORY
+=======+
Calculate the factorial of a given number.
You can either implement it recursively or iteratively!
+==========+
Please answer to this message with your solution :)
Got a challenge Idea? DM it to @BinaryByter for a chance to be featured on this channel!
579 viewsMAXIMILIAN, 07:45
Open / Comment
2021-08-17 10:30:11 PRESENTS
+==========+
On christmas eve, it's present-time! Create a function that accepts as input a Date-Object: If it's the 24th or 25th of December, the function returns true. Otherwise, it returns false; No presents for you yet :D

+==========+
Please answer to this message with your solution :)
Got a challenge Idea? DM it to @BinaryByter for a chance to be featured on this channel!
723 viewsMAXIMILIAN, 07:30
Open / Comment
2021-08-15 15:14:01 HARRY POTTER
+===========+
To try and encourage more sales of the 5 different Harry Potter books they sell, a bookshop has decided to offer discounts of multiple-book purchases.

One copy of any of the five books costs 8 EUR.

If, however, you buy two different books, you get a 5% discount on those two books.

If you buy 3 different books, you get a 10% discount.

If you buy 4 different books, you get a 20% discount.

If you go the whole hog, and buy all 5, you get a huge 25% discount.

Note that if you buy, say, four books, of which 3 are different titles, you get a 10% discount on the 3 that form part of a set, but the fourth book still costs 8 EUR.

Your mission is to write a piece of code to calculate the price of any conceivable shopping basket (containing only Harry Potter books), giving as big a discount as possible.

For example, how much does this basket of books cost?

2 copies of the first book
2 copies of the second book
2 copies of the third book
1 copy of the fourth book
1 copy of the fifth book
+=========+
Please answer to this message with your solution :)
Got a challenge Idea? DM it to @BinaryByter for a chance to be featured on this channel!
363 viewsMAXIMILIAN, 12:14
Open / Comment
2021-08-13 10:28:01 Binarey
+=====+
Language: C++/C/Rust
+=====+
Implement a function that converts a number into Base 2 representation (=> Binary)

NOTES:
- The number will not exceed 1024
- You might need the && operator
- The strings will always go to the length at which the most left bit's value gets bigger than the number in decimal.

+======+
Please answer to this message with your solution :)
Got a challenge Idea? DM it to @BinaryByter for a chance to be featured on this channel!
1.2K viewsMAXIMILIAN, 07:28
Open / Comment
2021-08-10 10:26:01 LATER, PROMISED!
+===============+
Language: JS
+=========+
await new Promise ();

Implement the promise in such a way that it will halt code execution for 5 seconds
+========+
Please answer to this message with your solution :)
Got a challenge Idea? DM it to @BinaryByter for a chance to be featured on this channel!
1.1K viewsMAXIMILIAN, 07:26
Open / Comment
2021-08-08 10:53:01 Hully: Special challenge
+=========+
Difficulty: Hard
Language: C++
+=========+
Given a set of n points (Each being a tuple [x, y]), calculate the convex hull of that set, implement an algorithm with a reasonable average complexity


+========+
Please answer to this message with your solution :)
Got a challenge Idea? DM it to @BinaryByter for a chance to be featured on this channel!
650 viewsMAXIMILIAN, 07:53
Open / Comment
2021-08-07 10:22:01
Matchsticks
+=========+
Given the amount of houses, return the amount of matchsticks needed to build this formation.

The input is a positive integer
+=========+
Please answer to this message with your solution :)
Got a challenge Idea? DM it to @BinaryByter for a chance to be featured on this channel!
1.1K viewsMAXIMILIAN, 07:22
Open / Comment
2021-08-04 22:45:11 Triangle
+=======+
Difficulty: quite easy, but pretty interesting maths-wise
+=======+
Given two sides of a triangle (both positive integers), calculate the length of the biggest possible size of a third side of a triangle (positive integer too)!

For help with the maths, watch this:



BONUS: Find the smallest possible integer sidelength
+======+
Please answer to this message with your solution :)
Got a challenge Idea? DM it to @BinaryByter for a chance to be featured on this channel!
564 viewsMAXIMILIAN, edited  19:45
Open / Comment