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

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…Read More »Sorting – 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 Huﬀman code is a particular type of optimal preﬁx 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

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

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…Read More »Breadth-First Search …-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…Read More »Finding Patterns in Files using grep ….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

Fahad’s Birthday is a week ahead. Arav and his friends are planning to give him a birthday party. For that Arav’s friends want him to…Read More »Calculating the price of cake on the Yth day…[Cprogm] fcukthecode.com

Arov was given a problem to solve, by his brother Dharma. The problem was like, given integers, N and K, Arov has to find the…Read More »Number of possible non-increasing arrays…[Cprogm]FcukTheCode

Aru runs a small hotel near the popular university. The hotel also runs very well due to the high taste. All the menus in the…Read More »Create a programming logic to display the type of spinach using the calorie value…[Cprogm]FTC

Tina has recently been introduced to a programming concept called Hashing.Hashing is the transformation of a string of characters into a usually shorter fixed-length value…Read More »Find no of strings she can make using each of the alphabet as starting character…[Cprogm]FTC

Fazil the tutor of the skill training institute gave an array of integers to one of highly attentive student of his class Rohan and asked…Read More »Create a programming snippet to find the Pythagorean triplet…[Cprogm] FTC

Oh, no! Shahid in trouble. He’s got himself stuck in a cave (we don’t know how) and is looking for a way out.The bigger problem…Read More »To estimate how many of his dishes he will be able to cook, find out what’s the minimum possible energy he needs to spend…[Cprogm]FTC

Amrish is a brilliant student who has a huge interest in coding. So his friend Dev gave an array A of non-negative integers of size m to Amrish and…Read More »Sort the array in non-decreasing order and print out the original indices…[Cprogm]FTC

Once upon a time, the Earth was a flat rectangular landmass. And there was no life. It was then that the sky lit up with…Read More »Now the lifeless, want to know the number of landmasses on the planet after all the meteorites have fallen…[Cprogm]FTC

Ana is involved in developing a new web browser After many sleepless nights she finishes most of the modules of her new web browser and…Read More »Complete the error page module?…[Cprogm] FcukTheCode

Ray who studies arts came across a programming challenge of finding the distance between the two array values is the number of indices between them. …Read More »Find the minimum distance between any pair of equal elements in the array…[Cprogm]FTC

Shah is an road side cloth seller. There is a large pile of socks that must be paired by color for sale. Given an array…Read More »Print an integer representing the number of matching pairs of socks that are available…[Cprogm]FTC

Sundar is well known for setting typical problems for the contest. During contest at a particular time, many teams were not able to solve single…Read More »Sundar is well known for setting typical problems for the contest…[Cprgm]FTC

There are M boys and N girls in the gang. Each boy can only dance with a girl who is strictly shorter than him. A girl…Read More »Given the heights of all the boys and girls tell whether…..[Cprogm] FcukTheCode