# Tag: python programming

## Story of budding programmer Lily

Imagine a story of a budding programmer named Lily, who embarks on a Python programming journey. Here are some Python-related scenarios woven into her narrative:…

## 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…

## 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…

## 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…

## Huffman Coding -: Greedy Algorithms …FTC

Huffman Coding – Activity Selection Problem👉 👉 Activity Selection Problem Huﬀman code is a particular type of optimal preﬁx code that is commonly used for…

## Metaverse – It is/will be the future …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…

## 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…

## fgrep and egrep in Linux Finding patterns in Files… 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…

## 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 👈 👈 😉…

## 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 👈 👈 😉…

## Storing Graphs (Adjacency List) …fcukthecode

Graph Theory is the study of graphs, which are mathematical structures used to model pairwise relations between objects.Introduction To Graph Theory …FTC 👈 👈 😉…

## Introduction To Graph Theory …FTC

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…

## Adjacency Matrix (Storing Graphs) …-fcukthecode

Graph Theory is the study of graphs, which are mathematical structures used to model pairwise relations between objects.Introduction To Graph Theory …FTC 👈 👈 😉…

## Dijkstra’s Shortest Path Algorithm …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…

## 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…

## Finding Patterns in Files using grep ….fcukthecode

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…

## 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…

## 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…

## 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: …

## Algorithm Complexity Big O Notation (With Examples) …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…