Programming

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


I'll be the next @ Dcoder

24 Jun 2023 1 minute read 0 comments Lochard

Problem: You are given a string, you have to convert each letter in the string with the next one.For example a becomes b and C becomes D. Input: Input contains a string s. Output: Print the manipulated string according to the problem. Constraints: 1≤...

The bit flipper @ Dcoder

2 Jun 2023 1 minute read 0 comments Lochard

Problem: You are given a binary number, you just need to flip each and every bit of it ie. 1 turns to 0 and 0 turns to 1. Input: Input contains a binary number. Output: Print the flipped binary number. Constraints: The binary number can be any binary...

Binary to Decimal @ Dcoder

31 May 2023 1 minute read 0 comments Lochard

Problem: Write a code which converts a binary number (written as string) into a decimal number. Input: Input is a binary number. Output: The output is a decimal number.(interger value) Constraints: The binary number is non-negative and the resultant...

First Half!! @ Dcoder

28 May 2023 1 minute read 0 comments Lochard

Problem: Given a string return its first half.Assume string to have even number of characters. Input: Input contains a string Output: Print the first half of string. Constraints: 0≤string length≤100 Sample Input: Dcoder Sample Output:  Dco s = input(...

Reverse The Linked list @ Dcoder

26 May 2023 1 minute read 0 comments Lochard

Problem: You are given a linked list, you just need to reverse its order without changing any pointer, ie print the tail first and head last. Input: Input contains elements of linked list separated by space and terminated by -1 Output: Print reversed...

Find the eldest brother! @ Dcoder

25 May 2023 1 minute read 0 comments Lochard

Problem: There are 5 brothers in a family, you need to tell eldest brother's age. You are given age of all the brothers. Input: Input contains 5 numbers separated by space indicating the ages of 5 brothers. Output: Print the age of eldest brother. Co...

Tables @ Dcoder

22 May 2023 1 minute read 0 comments Lochard

Problem: Cody is now in 1st standard, he is learning tables. Help him printing table of n.  Input: Input containts n, an integer. Output: Print Table of n. Constraints: 1≤n≤10000 Sample Input: 2 Sample Output:  2 4 6 8 10 12 14 16 18 20 n = int(input...

The websites/social accounts below need to find a new home with someone who can pick um up and run.

19 May 2023 1 minute read 0 comments -Justin

I'll soon be living off-grid, reducing my time on this PC drastically. The websites/social accounts below need to find a new home with someone who can pick um up and run. If you want more information on any of them, please DM me on Twitter!

What's the ASCII? @ Dcoder

26 Apr 2023 1 minute read 0 comments Lochard

Problem: You will be given a character having ASCII Code between 33 to 127. You need to print the ASCII Code of the character. Input: A single character. Output: Print the ASCII Code of the character in decimal form. Constraints: Character will have...

Python count seconds

5 Apr 2023 1 minute read 0 comments SlashReal

import time counter = 0 while 0 < 1:     seconds = time.time()     local_time = time.ctime(seconds)     counter = counter +1     print('Seconds: ' , counter)     time.sleep(1)