Hi dev colleagues!
I’d love to hear your feedback on my latest project. This should helps us developers to better focus through blocking digital distractions! It already helped me to reduce multitasking in stressful times. It works like this:
https://youtu.be/58qNJcx4NrQ
What do you think? You can send me your feedback in DM.
Chess-Tournament
+==============+
Well... Looks like I don't have a choice 😉
The tournament will start 8:00PM UTC-2, today.
Join here: https://lichess.org/tournament/hjJRxA3I
Can't wait to figure out who the winner is 😏
CODES
+======+
Each person in Italy has an unique identifying ID code issued by the national tax office after the birth registration: the Fiscal Code (Codice Fiscale). Check the Resources tab for more info on this.
Given an object containing the personal data of a person (name, surname, gender and date of birth) return the 11 code characters as a string following these steps:
Generate 3 capital letters from the surname, if it has:
At least 3 consonants then the first three consonants are used. (Newman -> NWM).
Less than 3 consonants then vowels will replace missing characters in the same order they appear (Fox -> FXO | Hope -> HPO).
Less than three letters then "X" will take the third slot after the consonant and the vowel (Yu -> YUX).
Generate 3 capital letters from the name, if it has:
Exactly 3 consonants then consonants are used in the order they appear (Matt -> MTT).
More than 3 consonants then first, third and fourth consonant are used (Samantha -> SNT | Thomas -> TMS).
Less than 3 consonants then vowels will replace missing characters in the same order they appear (Bob -> BBO | Paula -> PLA).
Less than three letters then "X" will take the the third slot after the consonant and the vowel (Al -> LAX).
Generate 2 numbers, 1 letter and 2 numbers from date of birth and gender:
Take the last two digits of the year of birth (1985 -> 85).
Generate a letter corresponding to the month of birth (January -> A | December -> T) using the table for conversion included in the code.
For males take the day of birth adding one zero at the start if is less than 10 (any 9th day -> 09 | any 20th day -> 20).
For females take the day of birth and sum 40 to it (any 9th day -> 49 | any 20th day -> 60).
EXAMPLE:
Читать полностью…
fiscalCode({
name: "Helen",
surname: "Yu",
gender: "F",
dob: "1/12/1950"
}) ➞ "YUXHLN50T41"
fiscalCode({
name: "Mickey",
surname: "Mouse",
gender: "M",
dob: "16/1/1928"
}) ➞ "MSOMKY28A16"
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!
https://quick-questions-prototype--pr1-ft-swipe-rm0qae48.web.app/
Do you guys have any opinions on this prototype for a multiple-choice format for prograchallenges.com?
Count digits
+=====+
Without using any built-in function like (toString(), split(), splice().... etc);
Write the best way to count the number of digits of any number, including negative numbers.
+===========+
For an additional challenge Include floats as well.
Write down a Python program in order to:
Read a positive integer number n.
• Print out a proper message according to the fact that it is an odd or an even value.
Feedback!
+======+
Hey Everybody! I need your help - We are shaping the future of prograchallenges.com!
We want to have some ways to learn programming that are super quick to do! I was thinking of flashcards that you can easily click through to learn some new concepts in 2 minutes.
What is your opinion on how to make them? What would you love to see? The more you tell us, the more you help us!
Binary loop
____
Write a function that takes a binary number as an input and shifts each bit by one to the right or left while looping on itself like a circle.
Make a delay of one second between each shift.
Example:
Input : 00101100
Output: (shifting to the right)
First loop: 00010110
Second loop: 00001011
Third loop: 10000101
SPEED
+====+
If the lowest speed of a car was written as (50) instead of zero and the highest speed (250) instead of (200) then how can we know what speed we are at if the speedometer reads, for example, 100?
_________
Write a program that takes two arrays of length 2 each, and a number to be converted based on the inputted arrays. The first array is like the scale, the second array is what should be converted based on the first array, and the third argument is the number to be converted.
example:
function([1,100], [50,150], 60) //output => 10
function([1,100], [50,150], 80) //output => 30
ARDUINONONONOOOOOO!
+======================+
Build a program that records the highest temperature since the program started and the highest temp in the last 10 minutes. Record the lowest temp since power up as well as lowest in ten minutes. These are saved in an array of ints where the last two significant digits are decimal points. (I.e. 123.45 is stored as 12345; 1.2345 is saved as 123)
+======================+
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!
if (isset($_GET['num'])) {
if (is_numeric($_GET['num'])){
if (strlen($_GET['num']) < 7){
if ($_GET['num'] > 999999)
echo "this is a bug";
}
}
}
What number can replace with num that print echo?
FREE BOOKS
+==========+
Download programming books for FREE, all books from 2019!
/channel/progerbooks
Advent of code #1
+=============+
You're minding your own business on a ship at sea when the overboard alarm goes off! You rush to see if you can help. Apparently, one of the Elves tripped and accidentally sent the sleigh keys flying into the ocean!
Before you know it, you're inside a submarine the Elves keep ready for situations like this. It's covered in Christmas lights (because of course it is), and it even has an experimental antenna that should be able to track the keys if you can boost its signal strength high enough; there's a little meter that indicates the antenna's signal strength by displaying 0-50 stars.
Your instincts tell you that in order to save Christmas, you'll need to get all fifty stars by December 25th.
Collect stars by solving puzzles. Two puzzles will be made available on each day in the Advent calendar; the second puzzle is unlocked when you complete the first. Each puzzle grants one star. Good luck!
As the submarine drops below the surface of the ocean, it automatically performs a sonar sweep of the nearby sea floor. On a small screen, the sonar sweep report (your puzzle input) appears: each line is a measurement of the sea floor depth as the sweep looks further and further away from the submarine.
For example, suppose you had the following report:
199
200
208
210
200
207
240
269
260
263
199 (N/A - no previous measurement)
200 (increased)
208 (increased)
210 (increased)
200 (decreased)
207 (increased)
240 (increased)
269 (increased)
260 (decreased)
263 (increased)
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]Notes
// 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
C programming course session
On of our most experienced channel members (@QNeko) will be giving a comprehensive course on C programming for beginners. The course will teach you the basics of programming in C. It serves as a foundation to then learn system programming and embedded programming in C.
The course costs $32.5 per month over 3 months (one day per week, 13 days total) or $97.5 in total. It covers the following:
Basics
* Functions
* Types
* Expressions
* Pointers
* Control-flow
* Macros
Styles
* Procedural programming
* OOP
Compilers and friends
* Unix
* Make
* GCC and options
* Linker and options
Courses will be on Saturdays, 7:00AM UTC to 11:00AM UTC and 12:30PM UTC to 03:30PM UTC, starting on May 21rst 2022.
https://cloud.nekoit.xyz/apps/forms/YBt5F4gz4RS5Qmbx
Datastructures
+=============+
Time: 1 Hour
Difficulty: easy
Languages: C++, C# (or any other, really)
+=============+
Implement a queue that can be used for any datatype.
+=========+
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!
Pattern converter
+==========+
Take in an image and convert it to ascii art. Bonus points if you can add color!
SUM ARRAY
+========+
Calculate the sum of numbers in an array of numbers
+========+
This is the first working example of a challenge on prograchallenges.com. Please give us feedback! :)
https://prograchallenges.com/challenge/sum-array
Lambda
+====+
What is the output of this code?
#include <iostream>[nothing]
int main () {
auto a = [] () {
std::cout << "a" << "b" << "abc";
}
}
Your help for prograchallenges.com
+===========================+
In order to build an amazing website for you, we need to understand your needs! Please support our open source project to strengthen to community by answering this simple, anonymous, fun and quick survey: https://surveyheart.com/form/61b07c591ca6e536ec4d2601
Texting
+=====+
Given the string "A string." Print on one line the letter on the index 0 and the pointer position. Increase the pointer by two. Rinse and repeat until the string is over.
Alternatively: Replace pointers by Iterators
+=======+
Got a challenge Idea? DM it to @BinaryByter for a chance to be featured on this channel!
Your help for prograchallenges.com
+===========================+
In order to build an amazing website for you, we need to understand your needs! Please support our open source project to strengthen to community by answering this simple, anonymous, fun and quick survey: https://surveyheart.com/form/61b07c591ca6e536ec4d2601
Thicc Water!
+=========+
Implement a function that takes height and radius of a cylinder!
The output should be the weight of a column of water of those proportions.
For an additional challenge, round the result to exactly 2 decimals.
+=========+
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!
I just figured out how to create an advent of code leaderboard ( You can call me some sort of genius 😉 )
Join it using this code: 1730310-696745cd
Data Structures #1
+===========+
Language: any
Time: 3hours
Difficulty: easy
+===========+
Implement a linked list and a pair of iterators for 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!
FLIPPIDIBIT
+========+
Given a string of any length, implement a function that flips the characters of the strings - reduce the amount of inbuilt functions used
+=========+
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!