Programming

620 Articles 12 Followers

My First Video Game Concept.

For a while now, I have been teaching myself Blender, coding and romhacking. My goal was always to create my own videogames and hacks. For years, I have been fascinated with 3d modeling and patching. Even when I was a child playing Super Mario 64, I...

Lameshark 3 minute read 21 Aug 2023 0 comments $0.02

Codewars Kata — Sum of two lowest positive integers

Create a function that returns the sum of the two lowest positive numbers given an array of minimum 4 positive integers. No floats or non-positive integers will be passed.   For example, when an array is passed like [19, 5, 42, 2, 77], the output sho...

Lochard 1 minute read 19 Aug 2023 0 comments $0.04

Please check the password! @ Dcoder

Problem: Ethan has a possible list of password to hack a secure account. To select the correct password, he researched the owner and discovered that the account's owner is very fond of acronyms. After eliminating the rest of the patterns, Ethan is no...

Lochard 1 minute read 17 Aug 2023 0 comments $0.02

Binary Operations @ Dcoder

Problem: You will be given two numbers, a and b, in their binary form. You need to print their sum and their product in binary. Input: Two strings separated by space representing the binary values of a and b. Output: Print their sum(a+b) in the first...

Lochard 1 minute read 16 Aug 2023 0 comments $0.02

Power Number @ Dcoder

Problem: A Power Number is a positive number that can be expressed as x^x, i.e. x raise to the power of x, where x is any positive number. You will be given an integer array A and you need to print if the elements of array A are Power Numbers or not....

Lochard 1 minute read 15 Aug 2023 0 comments $0.00

Power Number @ Dcoder

Problem: A Power Number is a positive number that can be expressed as x^x, i.e. x raise to the power of x, where x is any positive number. You will be given an integer array A and you need to print if the elements of array A are Power Numbers or not....

Lochard 1 minute read 13 Aug 2023 0 comments $0.03

Codewars Kata - Testing 1-2-3

DESCRIPTION: Your team is writing a fancy new text editor and you've been tasked with implementing the line numbering.   Write a function which takes a list of strings and returns each line prepended by the correct number.   The numbering starts at 1...

Lochard 1 minute read 12 Aug 2023 0 comments $0.01

Cody's Team @ Dcoder

Problem: Cody is preparing for a programming competition. He needs k more members for his team to be eligible for the competition. So he organizes a coding test for all his juniors to select the best group. His teacher has instructed him to only sele...

Lochard 1 minute read 10 Aug 2023 0 comments $0.01

Arithmetic Sequence @ Dcoder

Problem: In mathematics, an arithmetic progression (AP) or arithmetic sequence is a sequence of numbers such that the difference between the consecutive terms is constant. John was writing an Arithmetic sequence with N terms, but while writing he mis...

Lochard 1 minute read 9 Aug 2023 0 comments $0.10

Dcoder Admiration @ Dcoder

Problem: Dcoder has N members each numbered from 1 to N. A member admires other member if its number divides the other member's number.    Given a number N you need to find the number of people with odd number of admirers   Input: T the number of tes...

Lochard 1 minute read 6 Aug 2023 0 comments $0.01