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 6

2021-11-18 22:12:58 Preparing for a coding interview? Join Algochallenges. One algorithm question every day with an explanation
2.4K viewsCalle Unnérus, 19:12
Open / Comment
2021-11-16 10:52:00
!function (a) { console.log('hi' + a)}(' world')
Anonymous Quiz
40%
"hi world"
19%
No output
18%
Warning: Stray ! in code
23%
Error: Stray ! in code
370 voters2.9K viewsMAXIMILIAN, 07:52
Open / Comment
2021-11-12 10:13:27 VOWEL
+====+
Write a function that takes in a string and for each character, returns the distance to the nearest vowel in the string. If the character is a vowel itself, return 0.
Examples

distanceToNearestVowel("aaaaa") ➞ [0, 0, 0, 0, 0]

distanceToNearestVowel("babbb") ➞ [1, 0, 1, 2, 3]

distanceToNearestVowel("abcdabcd") ➞ [0, 1, 2, 1, 0, 1, 2, 3]

distanceToNearestVowel("shopper") ➞ [2, 1, 0, 1, 1, 0, 1]

All input strings will contain at least one vowel.
Strings will be lowercased.
Vowels are: a, e, i, o, u.

+=========+
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!
739 viewsMAXIMILIAN, edited  07:13
Open / Comment
2021-11-10 00:06:08 LAND IN SIGHT
+===========+
The function is given a map with 1 representing land, 0 representing water. A land cell can have four neighbors along its edges. Compute the total perimeter of shore-lines that are defined by land cells touching water or the outer edges of the map. Each cell edge has a length equal to 1. An isolated cell without neighbors has a total perimeter length of 4.
Examples

islandsPerimeter([
[0, 1, 0, 0],
[1, 1, 1, 0],
[0, 1, 0, 0],
[1, 1, 0, 0]
]) ➞ 16

islandsPerimeter([
[1, 1, 1, 1, 1, 1],
[1, 0, 0, 0, 0, 1],
[1, 0, 1, 1, 0, 1],
[1, 0, 0, 0, 0, 1],
[1, 1, 1, 1, 1, 1],
]), 42)

islandsPerimeter([
[1, 0]
]) ➞ 4

+=========+
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, 21:06
Open / Comment
2021-11-03 19:57:12 Pip e
+====+
What is the length of the shortest pipe, of internal radius 50mm, that can fully contain 21 balls of radii 30mm, 31mm, ..., 50mm?

Give your answer in micrometres (10-6 m) rounded to the nearest integer.
+===+
Thank you to Rishabh for suggesting this challenge!
1.0K viewsMAXIMILIAN, 16:57
Open / Comment
2021-11-02 12:07:19 BURGERS (or was it Burglars?)
+=======================+
Given three arguments ⁠— an object obj of the stolen items, the pets name and a value ⁠— return an object with that name and value in it (as key-value pairs).

addName({}, "Brutus", 300) ➞ { Brutus: 300 }

addName({ piano: 500 }, "Brutus", 400) ➞ { piano: 500, Brutus: 400 }

addName({ piano: 500, stereo: 300 }, "Caligula", 440) ➞ { piano: 500, stereo: 300, Caligula: 440 }

The value argument will be a number.+=========+
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.4K viewsMAXIMILIAN, 09:07
Open / Comment
2021-11-01 16:54:44 Programming Challenges - How to be a breathtaking Programmer pinned «Focus! +=====+ We all need a bit of help! We have experienced many people asking questions, which is an amazing thing! For this, we have created a group. In order to keep quality, the group will be very strictly moderated - meaning that every question and…»
13:54
Open / Comment
2021-10-31 18:37:03
DRY (don't repeat yourself) is...

Please explain your choice in the group :)
Anonymous Poll
74%
Good
7%
Harmful
10%
Waste of time
9%
Other
382 voters1.8K viewsMAXIMILIAN, 15:37
Open / Comment
2021-10-26 21:52:42 true randomness
+=============+
Difficulty: medium
Time: 1h
Languages: Javascript
+================+
Make a random numbers generator that bases on the current internet speed.

Since the internet speed is very unsteady, its perfect to make a RNG.
+=========+
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!
955 viewsMAXIMILIAN, 18:52
Open / Comment
2021-10-26 21:15:30
10, If you want to iterate over the values in an array of integers called arrNumbers to perform an action on them, which loop statement enables you to do this
Anonymous Quiz
15%
for each (int number in arrNumbers){ }
36%
for (int i; each i in arrNumbers; i++){ }
22%
foreach (number in arrNumbers){ }
27%
foreach (int number in arrNumbers){ }
336 voters991 viewsMAXIMILIAN, 18:15
Open / Comment