Programming

Recommended Tags: Programming, Coding, Developer, Web Development. Just one is enough!


Learning sorting numbers with if else @ Dcoder

18 Jul 2023 1 minute read 0 comments Lochard

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. Constraints: 0

Learning Strings and binary numbers @ Dcoder

17 Jul 2023 1 minute read 0 comments Lochard

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 of: 'B is a substring of A'.  ie. 1 if B is subst...

Dcooooooooooder Fan @ Dcoder

17 Jul 2023 1 minute read 0 comments Lochard

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

Learn Sum of numbers @ Dcoder

15 Jul 2023 1 minute read 0 comments Lochard

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

Sum of squares @ Dcoder

14 Jul 2023 1 minute read 0 comments Lochard

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: a*a + (a+1)*(a+1) + ... + (b-1)*(b-1) + b*b Constraints: 1

The sum of Array @ Dcoder

11 Jul 2023 1 minute read 0 comments Lochard

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 the sum of the array's elements. Constraints: 1

Using loops to draw patterns(Pyramid) @ Dcoder

8 Jul 2023 1 minute read 0 comments Lochard

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: Try not to hardcode the output. Sample Inpu...

I don't like Repetition @ Dcoder

2 Jul 2023 1 minute read 0 comments Lochard

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: 1≤w length≤100 Sample Input: AaabBbbc Sample...

The Vowel Counter @ Dcoder

29 Jun 2023 1 minute read 0 comments Lochard

Problem: You are given with a String, you have to output count of vowels in the String. Input: Input contains a String. Output: Print vowel count in the String. Constraints: 1≤String lenght≤1000 Sample Input: Dcoder,A mobile coding platform Sample Ou...

Capitalize me @ Dcoder

25 Jun 2023 1 minute read 0 comments Lochard

Problem: You will be given a string, all you have to do is capitalize first letter of each word in the given string. Input: Input contains a string s. Output: Print the manipulated string according to the problem described. Constraints: 1≤s length≤10...