Login
Discover
Waves
Communities
Write
Login
Signup
Topics
#
dcoder
Explore topics
#dcoder
Global
Trending
Hot
New
Payout
Muted
Promoted
#dcoder
New
#dcoder
Follow to get notified about new posts with this tag
Get #dcoder by email
Follow
lochard
programming
3y
Published via Ecency
Learning Prime numbers with Loop/Recursion @ Dcoder
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
$ 0.000
0
lochard
programming
3y
Published via Ecency
Learning sorting numbers with if else @ Dcoder
Problem: There are 3 numbers given as input sort them in increasing order. Input: Three space separated positive integer m,n,p Output: Print the integers in sorted incresing order separated by space.
$ 0.000
0
lochard
programming
3y
Published via Ecency
Learning Strings and binary numbers @ Dcoder
Problem: Given two binary strings, A (of length 10) and B (of length 5), output 1 if B is a substring of A and 0 otherwise. Input: Binary string A and B separated by a space. Output: The logical value
lochard
programming
3y
Published via Ecency
Dcooooooooooder Fan @ Dcoder
Problem: Print the word Dco...oder Input: A positive integer n Output: Print the word: Dco..oder(letter o must be repeted n times) Constraints: 0<n<50 Sample Input: 5 Sample Output: Dcoooooder print('Dc'
lochard
programming
3y
Published via Ecency
The light Switch @ Dcoder
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
lochard
programming
3y
Published via Ecency
Learn Sum of numbers @ Dcoder
Problem: Given 2 natural numbers, find sum of them. Input: Two natural numbers n1 and n2 separated by a space. Output: Sum of the numbers Constraints: 1<=n1<=1000 1<=n2<=1000 Sample Input:
lochard
programming
3y
Published via Ecency
Sum of squares @ Dcoder
Problem: Compute the sum of squares for the given numbers: a, a+1, ..., b-1, b. Input: Two natural numbers a and b separated by a space. Output: Computed sum: aa + (a+1)(a+1) + ... + (b-1)(b-1) + bb
lochard
programming
3y
Published via Ecency
The Triangle Game @ Dcoder
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
lochard
programming
3y
Published via Ecency
The sum of Array @ Dcoder
Problem: Given the array of N numbers, you have to find its sum. Input: The first line contains an integer N, number of elements in array.Next line contains N integers separated by space. Output: Print
lochard
programming
3y
Published via Ecency
The War of Problem Setters @ Dcoder
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
lochard
programming
3y
Published via Ecency
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
lochard
programming
3y
Published via Ecency
Using loops to draw patterns(Pyramid) @ Dcoder
Problem: Draw the pattern specified using loops. Input: Output: The pattern as shown in sample output. First line contain 4 space and 1 star, next line contains 3 space and 3 stars and so on.. Constraints:
lochard
programming
3y
Published via Ecency
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
lochard
programming
3y
Published via Ecency
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
lochard
programming
3y
Published via Ecency
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
lochard
programming
3y
Published via Ecency
Reverse me @ Dcoder
Problem: You are given an integer, reverse it. Input: Input contains an integer n. Output: Print reverse of integer. Constraints: 1ā¤nā¤10000 Sample Input: 9956 Sample Output: 6599
lochard
programming
3y
Published via Ecency
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,
lochard
programming
3y
Published via Ecency
I don't like Repetition @ Dcoder
Problem: The problem is simple, you are given a word. You need to remove the repeating characters. Input: Input contains a word w. Output: Print the output according to the problem explained. Constraints:
lochard
programming
3y
Published via Ecency
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
lochard
programming
3y
Published via Ecency
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
ā Latest
Older ā
Discover communities
Explore communities
Create your community