As a newbie programmer
As a newbie programmer

As a newbie programmer

Sharing entry level codes. My snippets on GitHub https://github.com/locharp/code-snippets

Finding Nemo @ Dcoder

Problem: Nemo is a little kid in Word-World who always gets mixed in a group of other words and gets lost. Marlin and Coral (Nemo's parents) are quite desperate and called you for help every time Nemo got lost. You helped for the first few times but...

Lochard 1 minute read 3 Apr 2023 0 comments $0.03

Change in Case @ Docder

Problem: You will be given a single string and two positive integers denoting indices. You need to change the case of the characters at those indices,i.e change uppercase to lowercase and lowercase to uppercase. It is guaranteed that all characters i...

Lochard 1 minute read 2 Apr 2023 0 comments $0.01

Array Sum @ Dcoder

Problem: You are given an integer array and you have to find the sum of the elements of the array and find the remainder when the sum is divided by the largest number of the array. Input: First line contains N, the number of elements. Next line conta...

Lochard 1 minute read 31 Mar 2023 0 comments $0.02

Split Screen Calculator (Style It Yourself)

You can try to use on my page's dev section. Source code including TypeScript code can be found in this repository. Instruction is on the README of the app folder. It is not styled. It is not thoroughly test. There are probably still bugs. There are...

Lochard 1 minute read 22 Mar 2023 0 comments $0.00

Three's Company @ Dcoder

Problem: This problem requires you to create a output string from input string such that for every character in input string, there are three same characters in output string. Input: First line contains N, the number of letters in the string. The nex...

Lochard 1 minute read 19 Mar 2023 0 comments $0.02

Degree Celsius @ Dcoder

Problem: Tom is a scientist. He uses huge machines for complex calculations. There is a problem, the machines takes input as Fahrenheit and Tom has the temperatures in Degree Celsius. As he is busy with his work, he asks your help to convert Degree C...

Lochard 1 minute read 18 Mar 2023 0 comments $0.00

Happy String @ Dcoder

Problem: A happy string is a string in which each character is lexicographically greater than its next character. You are given a positive integer N as an input. You need to print the smallest lexicographical string possible of length N.NOTE: All cha...

Lochard 1 minute read 15 Mar 2023 0 comments $0.04

Circle of Numbers @ Dcoder

Problem: All numbers in NumberLand are standing in a circle for a dancing ceremony. Every number needs a dancing partner. Dancing partner of any number is the number which is standing radially opposite to it in the circle. The numbers are from 0 to N...

Lochard 1 minute read 13 Mar 2023 0 comments $0.01

Project Teams @ Dcoder

Problem: There are N students in a class and Teacher want to divide these students into some groups . Teacher told  that groups consisting of two or less students not allowed , so Teacher want to have as many groups consisting of three or more studen...

Lochard 1 minute read 12 Mar 2023 0 comments $0.02

Leap Year @ Dcoder

roblem: Steve is playing a quiz game with his brother John. As Steve just learned the concept of leap year, John wanted to test his knowledge. For that, John started to ask Steve whether a year is a leap year or not by giving him a random year. Steve...

Lochard 1 minute read 11 Mar 2023 0 comments $0.00