Programming

618 Articles 12 Followers


How many weeks @ Dcoder

23 Jul 2023 1 minute read 0 comments Lochard $0.04

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 $0.02

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 $0.05

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 $0.00

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 $0.03

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....

The light Switch @ Dcoder

16 Jul 2023 1 minute read 0 comments Lochard $0.02

Problem: There is a light bulb on the stairs, which has two switches. The light turns on if and only if one of them is on(binary 1) and other is off(binary 0).You are given combinations of these switch find whether the bulb glow or not? Input: Two bi...

The Triangle Game @ Dcoder

13 Jul 2023 1 minute read 2 comments Lochard $0.02

Problem: Glin was doing his maths homework , Rick came to his house. As Glin is week at Maths, Rick decided to help him in his homework. They both stuck at a problem of Right Angle Triangle. You have to help them both in this problem. Input is a Stri...

CodeWars C Kata - Double Char

12 Jul 2023 1 minute read 0 comments Lochard $0.08

DESCRIPTION: Given a string, you have to return a string in which each character (case-sensitive) is repeated once.   Examples (Input -> Output): * "String" -> "SSttrriinngg" * "Hello World" -> "HHeelllloo WWoorrlldd" * "1234!_ " -> "11223344!!__ " c...

The War of Problem Setters @ Dcoder

10 Jul 2023 1 minute read 0 comments Lochard $0.01

Problem: Garry and Sharry are colleague, assuming they work at Dcoder. They are our Problem Setters.One day we decide to judge their work. Both were given an assignment to make some problems to display at Dcoder, and they were awarded points based on...

Avik and his Girlfriend's Necklace @ Dcoder

9 Jul 2023 1 minute read 0 comments Lochard $0.01

Problem: Avik's Girlfriend is a Sorted Girl and she is also a Coder and loves arrays. So on her birthday Avik decided to gift her a necklace of pearls, now these pearls have numbers printed on them. When he bought the necklace its pearls were in sort...