Python
Bubble Sort… – FcukTheCode
Parameter Description Stable Yes In place Yes Best case complexity O(n) Average case complexity O(n^2) Worst case complexity O(1) The BubbleSort compares each successive pair…Read More »Bubble Sort… – FcukTheCode
PlayStation 5 ReStock …fcukthecode
Experience lightning fast loading with an ultra-high speed SSD, deeper immersion with support for haptic feedback, adaptive triggers and 3D Audio, and an all-new generation…Read More »PlayStation 5 ReStock …fcukthecode
Huffman Coding : Change-making problem ..:- fcukthecode
Huffman Coding -: Greedy Algorithms 👇 👇 🙂Link –> HUFFMAN CODING Given a money system, is it possible to give an amount of coins and…Read More »Huffman Coding : Change-making problem ..:- fcukthecode
Huffman Coding – Activity Selection Problem
Huffman Coding -: Greedy Algorithms 👇 👇 🙂Link –> HUFFMAN CODING The ProblemYou have a set of things to do (activities). Each activity has a…Read More »Huffman Coding – Activity Selection Problem
Celsius to Fahrenheit [Python] …ftc
Write a program to Convert the temperature from Celsius to Fahrenheit. INPUT_1:Celsius: 0 OUTPUT:Celsius to Fahrenheit: 32.0 F INPUT_2:Celsius: 30 OUTPUT:Celsius to Fahrenheit: 86.0 F…Read More »Celsius to Fahrenheit [Python] …ftc
Finding the multiple in Python …FTC
Find the multiple of given number in the list of integers. Input:First Line of the Input is the Number of Elements in the ListSecond Line…Read More »Finding the multiple in Python …FTC
OS Module (os.path) Python-fcukthecode
This module implements some useful functions on pathnames. The path parameters can be passed as either strings, or bytes. Applications are encouraged to represent file…Read More »OS Module (os.path) Python-fcukthecode
Find the sequence of given integers in Python…fcukthecode.com
Sort the given set of integers using bubble sort and find the smallest and largest among given set of integers. Get the number of integers Receive the…Read More »Find the sequence of given integers in Python…fcukthecode.com
Finding the occurrence of an integer [Python] … fcukthecode
Find the given integer in the given list of integers and print the number of occurrences of that integer in the list. INPUT_1:Enter the Elements: …Read More »Finding the occurrence of an integer [Python] … fcukthecode
Searching Linear in Python…FTC
Write a program to search a element linearly. INPUT_1:Enter the Elements: 5 2 3 4 10 40Element to Search: 3 OUTPUT:Element is present at index …Read More »Searching Linear in Python…FTC
Series and Parallel Mapping (Map function) in Python…FcuktheCode
map() is a built-in function, which means that it is available everywhere without the need to use an ‘import’ statement. It is available everywhere just…Read More »Series and Parallel Mapping (Map function) in Python…FcuktheCode
Mapping and Transposing with Map Module Python …FcukTheCode
Mapping values of different iterables For example calculating the average of each i -th element of multiple iterables: There are different requirements if more than…Read More »Mapping and Transposing with Map Module Python …FcukTheCode
Map Module in Python …FcuktheCode
The map function is the simplest one among Python built-ins used for functional programming. map() applies a specified function to each element in an iterable…Read More »Map Module in Python …FcuktheCode
Moving, Copying, and Removing Files in Linux..-..Fcukthecode
Commands for moving, copying, and deleting files are fairly straightforward. To change the location of a file, use the mv command. To copy a file…Read More »Moving, Copying, and Removing Files in Linux..-..Fcukthecode
List to Dictionary Python…fcukthecode.com
Write the python program which takes two lists and maps two lists into a dictionary. INPUT_1:Size: 3List1: 1 2 3List2: 1 4 9 OUTPUT:The dictionary…Read More »List to Dictionary Python…fcukthecode.com
Substitutions and Splitting using Regular Expressions Regex in Python…FTC
Basics of Regular Expressions in Python, check the link below 👇 👇Regular Expressions Regex basic in Python 👈 👈 Splitting a String The split() method…Read More »Substitutions and Splitting using Regular Expressions Regex in Python…FTC
Basics of Regular Expressions Regex in Python-FcukTheCode
A regular expression is a string used for pattern matching. Regular expressions can be used to search for strings that match a certain pattern, and…Read More »Basics of Regular Expressions Regex in Python-FcukTheCode
Dynamic Dictionaries Python…FTC
Write a program to print all the squares of the range from 1 to n. Input:Get the Value Output:Display the square value of the dictionary…Read More »Dynamic Dictionaries Python…FTC
Write a program to check whether the given key is present in the dictionary….Python FTC
If the key is present then display the value of the entered key and if the key is not present then display the appropriate message…Read More »Write a program to check whether the given key is present in the dictionary….Python FTC
Match an expression only in specific locations Regular expressions (Regex) in Python…FTC
Basics of Regular Expressions in Python, check the link below 👇 👇Regular Expressions Regex basic in Python 👈 👈 Also with table of contents about…Read More »Match an expression only in specific locations Regular expressions (Regex) in Python…FTC
Escaping Special Characters Regex(regular expressions) in Python..FTC
Python makes regular expressions available through the re module. Special characters (like the character class brackets [ and ] below) are not matched literally: By escaping…Read More »Escaping Special Characters Regex(regular expressions) in Python..FTC
Check the key in Dictionary Python…FTC
Write a program to check whether the given key is present in the dictionary. If the key is present then display the value of the…Read More »Check the key in Dictionary Python…FTC
Grouping in regular expression (Regex) Python…FTC
Basics of Regular Expressions in Python, check the link below 👇 👇Regular Expressions Regex basic in Python 👈 👈 Also with table of contents about…Read More »Grouping in regular expression (Regex) Python…FTC
In Form X and X*X using dictionary Python…FTC
Python Program to Generate a Dictionary that Contains Numbers (between 1 and n) in the Form (x , x*x). INPUT_1:5 OUTPUT:{1: 1, 2: 4, 3:…Read More »In Form X and X*X using dictionary Python…FTC
Display items in Dictionary Python…FTC
Write a program to get four dictionary items and display all the key-values format using update function and items() function ILLUSTRATION
Checking for allowed characters Regular Expression Regex in Python
Basics of Regular Expressions in Python, check the link below 👇 👇Regular Expressions Regex basic in Python 👈 👈 Also with table of contents about…Read More »Checking for allowed characters Regular Expression Regex in Python
Sum of Cosine Series in Python…..-FTC
Python Program to Find the Sum of Cosine Series. Input:First Line: Value of x in degreesSecond Line: Number of terms Output:Print the Sum of Cosine…Read More »Sum of Cosine Series in Python…..-FTC
Sum of Sine Series in Python3….FTC
Python Program to Find the Sum of Sine Series. Input:First Line : The value of x in degreesSecond Line: The number of terms Output:Print the…Read More »Sum of Sine Series in Python3….FTC
Remove vowels in string Python….FTC
Write a program that accepts a string and redisplays the same string after removing vowels from it. INPUT_1:Enter any String: welcomeOUTPUT:Without Vowels: wlcm INPUT_2:Enter any…Read More »Remove vowels in string Python….FTC