Menu Close

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

Sorting – fcukthecode

Parameter Description Stability A sorting algorithm is stable if it preserves the relative order of equal elements after sorting. In place A sorting algorithm is…

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…

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

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…

Breadth-First Search …-fcukthecode

Finding the Shortest Path from Source to other Nodes Breadth-first-search (BFS) is an algorithm for traversing or searching tree or graph data structures. It starts…

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…