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
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
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 -: 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
Huffman Coding – Activity Selection Problem👉 👉 Activity Selection Problem Huffman code is a particular type of optimal prefix code that is commonly used for…Read More »Huffman Coding -: Greedy Algorithms …FTC
Alert: Watch the Anime “Sword Art Online” and the film “Ready Player one” before reading this. Metaverse is the Future. Have anyone seen Sword Art…Read More »Metaverse – It is/will be the future …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
fgrep The fgrep command is similar to grep, but with three main differences: You can use it to search for several targets at once, it…Read More »fgrep and egrep in Linux Finding patterns in Files… FTC
Graph Theory is the study of graphs, which are mathematical structures used to model pairwise relations between objects.Introduction To Graph Theory …FTC 👈 👈 😉…Read More »Detecting a cycle in a directed graph using Depth First Traversal …FTC
Graph Theory is the study of graphs, which are mathematical structures used to model pairwise relations between objects.Introduction To Graph Theory …FTC 👈 👈 😉…Read More »Topological Sort in Graph …FTC
Graph Theory is the study of graphs, which are mathematical structures used to model pairwise relations between objects.Introduction To Graph Theory …FTC 👈 👈 😉…Read More »Storing Graphs (Adjacency List) …fcukthecode
Graph Theory is the study of graphs, which are mathematical structures used to model pairwise relations between objects. Did you know, almost all the problems…Read More »Introduction To Graph Theory …FTC
Graph Theory is the study of graphs, which are mathematical structures used to model pairwise relations between objects.Introduction To Graph Theory …FTC 👈 👈 😉…Read More »Adjacency Matrix (Storing Graphs) …-fcukthecode
Before proceeding, it is recommended to have a brief idea about Adjacency Matrix and BFS. Breadth-first-search (BFS) is an algorithm for traversing or searching tree…Read More »Dijkstra’s Shortest Path Algorithm …fcukthecode
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
Among the most commonly used tools in the UNIX System are those for finding words in files, especially grep, fgrep, and egrep. These commands search…Read More »Finding Patterns in Files using grep ….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
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
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
For Big-Theta Notations and Big-Omega Notations, On another page 👇 👇Algorithm Complexity(Big-Theta, Big-Omega, Big-O Notations) 👈 👈 🙂 🙂 DefinitionThe Big-O notation is at its…Read More »Algorithm Complexity Big O Notation (With Examples) …FcukTheCode
For Big O Notation, On Another Page 👉 👉 Big O Notation (With Examples) 🙂 Unlike Big-O notation, which represents only upper bound of the…Read More »Algorithm Complexity(Big-Theta, Big-Omega, Big-O Notations) …Fcukthecode
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
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 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
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
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
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
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
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
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
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