Programming

611 Articles 12 Followers


Codewars Kata - How good are you really?

30 Jul 2023 1 minute read 0 comments Lochard

DESCRIPTION: There was a test in your class and you passed it. Congratulations! But you're an ambitious person. You want to know if you're better than the average student in your class.   You receive an array with your peers' test scores. Now calcula...

Codewars 7 kyu Kata - Mumbling

29 Jul 2023 1 minute read 0 comments Lochard

DESCRIPTION: This time no story, no theory. The examples below show you how to write function accum:   Examples: accum("abcd") -> "A-Bb-Ccc-Dddd" accum("RqaEzty") -> "R-Qq-Aaa-Eeee-Zzzzz-Tttttt-Yyyyyyy" accum("cwAt") -> "C-Ww-Aaa-Tttt" The paramete...

Codewars 6 kyu Kata - Multiples of 3 or 5

28 Jul 2023 1 minute read 0 comments Lochard

DESCRIPTION: If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.   Finish the solution so that it returns the sum of all the multiples of 3 or 5 below the number passed in....

Excelencia's TheComparisonStatsSeries 22 : one year ago(2022) and yesterday Sunday, July 23 2023.

24 Jul 2023 1 minute read 0 comments excelencia

Yesterday one year ago(2022) it was a saturday...  and also  day 108 of Excelencia's TheDailyStatsSeries...        and yesterday, also July 23  but in this year 2023 ,it was Sunday...and also day 22 of Excelencia's TheComparisonStatsSeries...  Sund...

Learning Factorials with Loop/Recursion @ Dcoder

24 Jul 2023 1 minute read 0 comments Lochard

Problem: If n is an integer greater than 0, n factorial (n!) is the product: n* (n-1) * (n-2) * ( n-3)… * By convention, 0! = 1. Write a Program to compute n Factorial(n!), where n is input.  Input: n is a positive integer Output: Output will be n fa...

How many weeks @ Dcoder

23 Jul 2023 1 minute read 0 comments Lochard

Problem: A town in Death Valley has a water tank that contains 10,000 gallons of water. If there is no rain, calculate the number of weeks the water will last for an input weekly water usage. Input: Input contains positive integer n , which indicates...

The shortest Path Algo(Simple) @ Dcoder

22 Jul 2023 1 minute read 0 comments Lochard

Problem: The Jones Trucking Company tracks the location of each of its trucks on a grid similar to an (x, y) plane. The home office is at location (0, 0). Read the coordinates of truck A and the coordinates of truck B and determine which is closer to...

The BlackJack with conditions. @ Dcoder

21 Jul 2023 1 minute read 0 comments Lochard

Problem: Write a program to play a variety of BlackJack. In general, given two numbers, a and b, return their sum. If the sum is greater than 21, return 0, unless one of the numbers is 11. In such a case, the 11 should be 'converted' to a 1 to preven...

Learning Prime numbers with Loop/Recursion @ Dcoder

20 Jul 2023 1 minute read 0 comments Lochard

Problem: Raja Beta is bad at maths, his teacher always complaints about him.Help him in his prime numbers homework. Input: Two space separated positive integer m and n Output: Print all prime numbers p such that m

Let The Coding Games Begin

20 Jul 2023 2 minute read 0 comments Hermitworldwide

About the no code worry-site. The code was already written by webflow, everything basically templated. It's good for those who don't care too much about the details, otherwise you’d need some basic coding skills to refine the details to your liking....