Programming

611 Articles 12 Followers


Leap Year @ Dcoder

11 Mar 2023 1 minute read 0 comments Lochard

roblem: Steve is playing a quiz game with his brother John. As Steve just learned the concept of leap year, John wanted to test his knowledge. For that, John started to ask Steve whether a year is a leap year or not by giving him a random year. Steve...

Python | Decrypt Caesar Encryption

11 Mar 2023 4 minute read 0 comments Casper_x

Decrypt Caesar Encryption   Discover how to decrypt an encrypted message with the Caesar cipher using a simple yet effective method in Python with the ‘decrypt_cesar()’ function.   After creating my Caesar Cipher program, which allows encrypting and...

String Matching @ Dcoder

10 Mar 2023 1 minute read 2 comments Lochard

Problem: Cody has a sequence of characters N. He likes a sequence if it contains his favourite sequence as a substring. Given the sequence and his favourite sequence F, check whether the favourite sequence is present in the sequence. Input: The first...

'Time' Library | Python

10 Mar 2023 2 minute read 0 comments Casper_x

How to use 'Time' library ?    The 'time' library provides access to several time-related functions in Python. These functions allow us to work with time in various ways, including measuring the execution time of code, formatting dates and times for...

How To Solve Mathematical Problems With Python ?

9 Mar 2023 3 minute read 0 comments Casper_x

How To Solve Mathematical Problems With Python ?   Python is a versatile and powerful programming language that can be used to solve all kinds of problems, including mathematical problems. Whether you are a mathematics student or a professional worki...

Python | Sudoku Solver

8 Mar 2023 6 minute read 4 comments Casper_x

Sudoku Solver   Whether you're a casual Sudoku player or a passionate expert, this Python code for solving Sudokus is a must-have tool in your toolkit. With its powerful algorithm and ease of use, it is capable of solving even the most challenging Su...

SwapMaster solves Symmetric Swap @ Dcoder

7 Mar 2023 1 minute read 0 comments Lochard

roblem: The SwapMaster is known to be the greatest and fastest swapper of all time. You intend to bring him down and become the new SwapMaster of the city. Through some secret sources, you found out that The SwapMaster undertook yet another task from...

Python | Scrabble Helper (tkinter)

7 Mar 2023 6 minute read 3 comments Casper_x

Tkinter Scrabble helper   Boost your Scrabble game with our Python Scrabble Helper! Utilizing the power of ‘tkinter’ for an easy-to-use graphical interface, our program generates word suggestions to help you score more points and beat your opponents....

Python | Caesar Cipher

6 Mar 2023 12 minute read 0 comments Casper_x

Caesar Cipher   Today we will see together how to create the Caesar cipher. Let's start from the beginning.. It is essential to understand how the Caesar cipher works : each letter of the text is shifted by 'n' positions in the alphabet, where 'n' is...

Floating Number @ Dcoder

4 Mar 2023 1 minute read 2 comments Lochard

Problem: Bob has a floating point number N. He wants to set the precision for 2 digits after the decimal point for the number.He is not good at coding, hence looking for your help.Input: The first line contains T, the number of test cases.Next T line...