Telegram Web Link
Geo!!!
+=======+
Write a function that takes the base and height of a triangle and return its area.


+======+
Got a challenge Idea? DM it to @BinaryByter for a chance to be featured on this channel!
Derivates of Coding! :D
+==============+
Difficulty: mathsy, mathsy, mathsy

Say you have a function f(x)

Program a program that calculates f'(x)
there are two ways of doing so

1) parse the elements and change them after the rules
2) calculate it yourself by going through small pieces of your curve.

FUNCTIONS FOR TESTING:

g(x) = xΒ²
h(x) = 2*2*x*43/213
i(x) = x^1/2


+======+
Got a challenge Idea? DM it to @BinaryByter for a chance to be featured on this channel!
Let's start a flamewar 😏
Anonymous Poll
52%
Linux
9%
MacOs
36%
Windows
2%
BSD
2%
TempleOs 😜
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: https://www.youtube.com/watch?v=VW0UM88eLYY

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!
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!
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!
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!
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!
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!
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!
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!
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!
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!
WRAPPED
+========+
Aluminum foil has a thickness of 0.025mm. A roll is formed by tightly winding it around a tube with an outside diameter of 4cm. Given the length of the foil in cm, write a function that returns the diameter of the roll in cm measured at its thickest point. Round the result to four places.

+========+
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
IIFE
+=========+
Language: JS
+=========+
Find the most efficient way to call a function directly after implementing it!

+=========+
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!
How many programmer friends do you have? Did you invite them here yet?
Anonymous Poll
40%
0
28%
1-3
17%
4-10
6%
<20
10%
>20
BALANCED
+=========+
Given a string containing only the characters x and y, find whether there are the same number of xs and ys.

balanced("xxxyyy") => true
balanced("yyyxxx") => true
balanced("xxxyyyy") => false
balanced("yyxyxxyxxyyyyxxxyxyx") => true
balanced("xyxxxxyyyxyxxyxxyy") => false
balanced("") => true
balanced("x") => false

+=========+
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!
Loop Loop Loooooop
+======+
Time: 30mins
Difficulty: tricky
+======+
In your language, find as many ways as possible to execute a loop.

+=========+
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!
Programming Challenges
Loop Loop Loooooop +======+ Time: 30mins Difficulty: tricky +======+ In your language, find as many ways as possible to execute a loop. +=========+ Please answer to this message with your solution :) Got a challenge Idea? DM it to @BinaryByter for a chance…
We are number 1rd!
+===============+
Implement a program that adds the ordinal suffixes to a number and prints them.

Examples:
5 becomes 5th
2 becomes 2nd
11 becomes 11th
3 becomes 3rd

+=========+
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
Go home, you are drunk!
+====================+
language: python
time: 10 minutes
+============+

Oh No! Python is Drunk! int() and str() are acting all weird!

str(13) ➞ 13
str("13") ➞ 13
int("14") ➞ "14"
int(14) ➞ "14"


Please implement an int_to_str() function to convert integers to strings and a str_to_int() function to convert strings to integers

int_to_str(4) ➞ "4"
str_to_int("4") ➞ 4
int_to_str(29348) ➞ "29348"

β€”

This example shows why you should never use pre-existing function names in your code!

+=========+
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
2025/07/08 13:40:22
Back to Top
HTML Embed Code: