Programming

611 Articles 12 Followers


Valid Quadrilateral @ Dcoder

12 Apr 2023 1 minute read 0 comments Lochard

Problem: John loves gardening. He believes that for good growth of the plant, the land should be quadrilateral. Given angles of 4 sides of the land. Find whether the land is a valid quadrilateral or not. A quadrilateral is valid if the sum of all fou...

Archie and his Homework @ Dcoder

11 Apr 2023 1 minute read 0 comments Lochard

Problem: Archie was given a homework by his teacher. He is given a fraction and he needs to write it in its reduced form. Archie is not good at Maths. Help Archie finish his homework. Input: 2 integers separated by space denoting the numerator and de...

Numbered Triangle @ Dcoder

10 Apr 2023 1 minute read 0 comments Lochard

Title: Numbered Triangle Problem: You need to print this pattern upto N. For N = 4, 1 1 2 1 2 3 1 2 3 4 Input: A single positive integer N. Output: Numbered Triangle upto N. Do not leave trailing whitespaces at the end of each line. Constraints: 1 ≤...

Special Array @ Dcoder

9 Apr 2023 1 minute read 0 comments Lochard

Problem: Natural numbers are the set of positive integers, which ranges from 1 to infinity excluding fractional part. Natural numbers are whole numbers excluding zero. Zero is the only whole number which is not a natural number. An array is special i...

Pangram @ Dcoder

6 Apr 2023 1 minute read 0 comments Lochard

Problem: A word or a sentence is called a pangram if all the characters of this language appear in it at least once, either in lowercase or in uppercase. You are given a string S consisting of lowercase and uppercase English letters. If the string is...

Extraction of Numbers @ Dcoder

5 Apr 2023 1 minute read 0 comments Lochard

Problem: Ron is schizophrenic and sees random digits hidden in words. He thinks it means something and someone is trying to secretly communicate with him. He wants to extract those digits from the words and see if they form a message. Harry really wa...

Finding Nemo @ Dcoder

3 Apr 2023 1 minute read 0 comments Lochard

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

Change in Case @ Docder

2 Apr 2023 1 minute read 0 comments Lochard

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

Array Sum @ Dcoder

31 Mar 2023 1 minute read 0 comments Lochard

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

How to Learn to Code (Basic Guide)

28 Mar 2023 4 minute read 2 comments MintDice.com

Coding is a practical and valuable skill to have under your belt, especially with the emergence of new technology. If you want to learn, it can be tricky to figure out how to start.  In this piece, we talk about how to learn to code, how long it tak...