Programming

620 Articles 12 Followers

Avik and his Girlfriend's Necklace @ Dcoder

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

Lochard 1 minute read 9 Jul 2023 0 comments $0.01

They see me Palindroming @ Dcoder

Problem: In india there is a puzzle"5 characters my name, reverse- forward is the same." You will be presented with a 5 character String, you have to tell whether it satisfy above puzzle, if yes output "Yes" else "No" Input: Input is String S of 5 ch...

Lochard 1 minute read 7 Jul 2023 0 comments $0.02

Toggle Me! @ Dcoder

Problem: Cody is very irritating child. He always change the characters in his homework, he has a trick. He change all small letter to capital and viceversa. His frinds gave him the title "The Toggle dude".One day his friends gave him some words, but...

Lochard 1 minute read 6 Jul 2023 0 comments $0.04

The irritating Students @ Dcoder

Problem: Cody is Professor at Zing University. He teaches English there. During his first class, he found the students are very talkative. So,he decided to divide the class into two sections, A & B such that the difference between the strength of two...

Lochard 1 minute read 5 Jul 2023 0 comments $0.01

The Predictor @ Dcoder

Problem: Cody always wanted to have some psychic powers so that he could showoff his skills, and magic to people and impress them, specially his girlfriend.But, in spite all his efforts, hardwork, dedication, Googling, watching youtube videos he coul...

Lochard 1 minute read 3 Jul 2023 0 comments $0.01

Let's get GCD @ Dcoder

Problem: Cody was doing his maths homework, suddenly he found a GCD(Greatest Comman divisor) problem. He is very lazy to do all the calculations for this exercise, so he just took his mobile and opened the Dcoder App, decided to code a program to fin...

Lochard 1 minute read 1 Jul 2023 0 comments $0.01

The closest to Average @ Dcoder

Problem: You are given an array, you have to find the closest integer to its average, look it has to be closest,not just the truncated version of the average. Input: First line contains n , number of elements of array, next line contains n integer se...

Lochard 1 minute read 30 Jun 2023 0 comments $0.01

Find me the divisor count @ Dcoder

Problem: Cody was solving a programming puzzle in Dcoder, and as always he is unable to do it alone. Puzzle statement is You are given three integers l,h,d and you have to find that how many integers between l and h (inclusive) are divisible by d.Let...

Lochard 1 minute read 27 Jun 2023 0 comments $0.08

Square of squares @ Dcoder

Problem: You have a hobby of building blocks. You are especially fond of building blocks that are squares. And what you even like more, is to arrange them into a square of square building blocks! /n However, sometimes, you are unable to achieve this...

Lochard 1 minute read 26 Jun 2023 0 comments $0.01

The Report Card! @ Dcoder

Problem: Priyanka is Professor at Zing University. Help the professor in assigning grades to her students.   The mean score of three subjects is to graded into 'A', 'B', 'C' or 'D' or 'F' depending upon the marks scored.   For the score >90 and score...

Lochard 1 minute read 23 Jun 2023 0 comments $0.01