Get Mystery Box with random crypto!

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.11K
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 9

2021-09-23 18:57:43 INTEGER
+========+
Given an integer arrary arr. Count how many elements X there are, such that X+1 is also in arr. If there're duplicates in arr, count them separately.

Example 1:
Input: arr = [1,2,3]
Output: 2

EXPLANATION :
There are 2 such elements: 1 and 2 because 2 and 3 are also in the arrary.

Example 2:
Input: arr = [1,1,3,3,5,5,7,7]
Output: 0

EXPLANATION :
There's no such number because 2, 4, 6 or 8 is not present in the arrary.

Example 3:
Input: arr = [1,3,2,3,5,0]
Output: 3

EXPLANATION:
There are 3 such numbers 0, 1 and 2 because 1, 2 and 3 are in the arrary.

Example 4:
Input: arr = [1,1,2,2]
Output: 2

EXPLANATION:
There are 2 such numbers 1 and 1 because 2 is in the arrary and duplicates are counted separately.

Example 5:
Input: arr = [1,1,2]
Output: 2

EXPLANATION:
There are 2 such numbers: 1 and 1 because 2 is in the arrary and duplicates are counted separately.
+========+
Thanks to star prince for this suggestion!
1.9K viewsMAXIMILIAN, 15:57
Open / Comment
2021-09-22 11:39:03 Stringy
+======+
Given a string "s" containing non-alphabetic characters, reverse the string so that the position of these non-alphabetic characters is still preserved.

var s = "abc^defgh==i"
Expected Output:  "ihg^fedcb==a"

+=======+
Thanks to StarPrince for this suggestion! :)
753 viewsMAXIMILIAN, 08:39
Open / Comment
2021-09-21 21:46:16 RETURN TO SENDER!
+===============+

A boomerang is a V-shaped sequence that is either upright or upside down. Specifically, a boomerang can be defined as: sub-array of length 3, with the first and last digits being the same and the middle digit being different.

[3, 7, 3], [1, -1, 1], [5, 6, 5]

***Create a function that returns the total number of boomerangs in an array.***

[3, 7, 3, 2, 1, 5, 1, 2, 2, -2, 2]
// 3 boomerangs in this sequence: [3, 7, 3], [1, 5, 1], [2, -2, 2]


countBoomerangs([9, 5, 9, 5, 1, 1, 1]) ➞ 2

countBoomerangs([5, 6, 6, 7, 6, 3, 9]) ➞ 1

countBoomerangs([4, 4, 4, 9, 9, 9, 9]) ➞ 0

Notes

[5, 5, 5] (triple identical digits) is NOT considered a boomerang because the middle digit is identical to the first and last.


+=========+
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!
434 viewsMAXIMILIAN, edited  18:46
Open / Comment
2021-09-19 10:18:16 Artistic Coding :D
+===========+
Difficulty: easy
time: 20 minutes
languages: any
+====================+
Write a program that randomly outputs either "@" or "^" or a "%" until the terminal is full. Share your screenshotted results in the group!

Try other characters too!
643 viewsMAXIMILIAN, 07:18
Open / Comment
2021-09-16 08:44:01 How to start into file IO
+======+
Time: 10 minutes
Difficulty: Easy
+========+
Program a tool that empties a file completely! Of course your tool has to be fast!
+==========+
608 viewsMAXIMILIAN, 05:44
Open / Comment
2021-09-15 08:39:45
FREE BOOKS
+==========+
Download programming books for FREE, all books from 2019!

https://t.me/progerbooks
928 viewsMAXIMILIAN, 05:39
Open / Comment
2021-09-12 22:03:40 ROMAN-tic
+========+
Write a class that holds a roman numeral, implements functions for output and input, addition, subtraction, multiplication, division and conversion to and from integer.

+=========+
Thanks to Michele for suggesting this idea!
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!
523 viewsMAXIMILIAN, 19:03
Open / Comment
2021-09-11 22:32:01 Polish your maths!
+==========+
In some areas of computer science, mathematical formulas are notated in polish notation:
4 10 +
=> 14

5 10 -
=> -5

3 3 *
=> 9

Implement a function that takes such an expression and converts it into a "normal" matematical equation

depolish ("4 10 -") => "4 - 10"

+=========+
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!
382 viewsMAXIMILIAN, 19:32
Open / Comment