Card image cap
Implementation of Kadane Algorithm in Python

Implementation of kadane algorithm is very important. This has been asked many times in the interview of tech giants such as Amazon, Morgan Stanley, Microsoft, Payu etc..

Card image cap
Python Program to Reverse a Singly Linked List

Python program to reverse a singly linked list is given below along with the output. Linked List questions are so often to be asked in the interviews of many tech giants.

Card image cap
List of keywords in Python

Python keywords are the those reserved words in python which cannot be used as an identifier, function or variable name. These keywords are reserved ones. They have their own pre-defined behavior.

Card image cap
Python program to get the frequency of characters in a string

Python Program to calculate the frequency of the character of the given string is given below. In this Program we used python dictionaries where key is the character of string and its value is the occurrence of that character in the given string.

Card image cap
Implementation of First Come First Serve (FCFS) Scheduling Algorithm in Python

First Come First Served (FCFS) is an Operating System process scheduling algorithm. It is non-preemptive in scheduling algorithm. Jobs are executed on first come, first serve basis. It is easy to understand and implement but poor in performance, as average wait time is high.

Card image cap
DFS Implementation in Python

Depth First Search (DFS) algorithm is used to traverse a graph depthward motion. DFS Algorithm use data structure stack to remember to get the next vertex to start the search and we will requred an array to keep the track of vertex that it is visited or unvisited.

Card image cap
BFS Implementation in Python

Breadth First Search (BFS) algorithm is used to traverse a graph in a breadth ward motion. BFS Algorithm use data structure queue to remember to get the next vertex to start the search and we will required an array to keep the track of vertex that it is visited or unvisited.

Card image cap
Python Program for Insertion at any position in Singly Linked List

Python program for insertion node at any position in singly linked list is given below. In this program the class LinkedList contains a method insert which will insert the new element at the desired position the program along with output is given.

Card image cap
Program for Insertion and Deletion at the beginning of Singly Linked List in Python

python program for the insertion and deletion operation at the beginning of singly linked list is given below. In this program we have two method. insert_at_beg() to insert the element in the beginning and delete_at_beg() to delete the element at the beginning of the linked list.