Priority Queue

2021 VietMX 0

In this tutorial, you will learn what priority queue is. Also, you will learn about it’s implementations in Python, Java, C, and C++. A priority […]

Types of Queues

2021 VietMX 0

In this tutorial, you will learn different types of queues with along with illustration. A queue is a useful data structure in programming. It is similar to […]

Stack Data Structure

2021 VietMX 0

In this tutorial, you will learn about the stack data structure and its implementation in Python, Java and C/C++. A stack is a linear data […]

Master Theorem

2021 VietMX 1

In this tutorial, you will learn what master theorem is and how it is used for solving recurrence relations. The master method is a formula […]

Python Tuple index()

2021 VietMX 0

The index() method returns the index of the specified element in the tuple. The syntax of the tuple index() method is: 1. Tuple index() parameters The tuple index() method […]

Python Tuple count()

2021 VietMX 0

The count() method returns the number of times the specified element appears in the tuple. The syntax of the count() method is: 1. count() Parameters The count() method takes […]

Python String format_map()

2021 VietMX 0

1. Overview The format_map() method is similar to str.format(**mapping) except that str.format(**mapping) creates a new dictionary whereas str.format_map(mapping) doesn’t. Before talking about format_map(). Let’s see how str.format(**mapping) works […]

Python String zfill()

2021 VietMX 0

The zfill() method returns a copy of the string with ‘0’ characters padded to the left. The syntax of zfill() in Python is: 1. zfill() Parameter zfill() takes […]

Python String title()

2021 VietMX 0

The title() method returns a string with first letter of each word capitalized; a title cased string. The syntax of title() is: 1. title() Parameters title() method doesn’t […]

Python String startswith()

2021 VietMX 0

In this tutorial, we will learn about the Python String startswith() method with the help of examples. The startswith() method returns True if a string starts with the specified […]

Python String splitlines()

2021 VietMX 0

The splitlines() method splits the string at line breaks and returns a list of lines in the string. The syntax of splitlines() is: 1. splitlines() Parameters splitlines() takes […]

Python String rsplit()

2021 VietMX 0

The rsplit() method splits string from the right at the specified separator and returns a list of strings. The syntax of rsplit() is: 1. rsplit() Parameters rsplit() method […]

Python String split()

2021 VietMX 0

In this tutorial, we will learn about the Python String split() method with the help of examples. The split() method breaks up a string at the specified […]

Python String rindex()

2021 VietMX 0

The rindex() method returns the highest index of the substring inside the string (if found). If the substring is not found, it raises an exception. […]