- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Found 34489 Articles for Programming
![Naveen Singh](https://www.tutorialspoint.com/assets/profiles/652652/profile/60_3316011-1683712915.jpeg)
111 Views
A binary string is a series of 0s and 1s in computer science and mathematics. The sum of two adjacent characters is indicated by sums of subsequent pairs of characters. For example to understand the below topic, the total number or digits of the succeeding pairs in the string "11010" is 1+1=2, 1+0=1, and 0+1=1. The goal is to locate a binary string that satisfies the specified frequencies using the frequencies of these sums as a guide. Applications of this issue can be found in fields like information theory and coding theory. Methods To find a binary string with given ... Read More
![Naveen Singh](https://www.tutorialspoint.com/assets/profiles/652652/profile/60_3316011-1683712915.jpeg)
986 Views
Visa credit or debit cards are assigned a 16-digit unique identifier known as a Visa card number. The number—which is ordinarily stamped on the front of the card—is used to find the cardholder's account while making purchases or carrying out transactions. The first six digits of a Visa card number reflect the issuing bank in contrast to the remaining digits, which are unique to the account number and the cardholder. For the purpose of validating the number's accuracy and preventing fraud, Visa card numbers have an extra check digit. Methods The methods are as follows for validating a Visa card ... Read More
![Naveen Singh](https://www.tutorialspoint.com/assets/profiles/652652/profile/60_3316011-1683712915.jpeg)
751 Views
A typical programming challenge is determining whether a number terminates with another number. To solve this problem, you must identify the last few digits of a given number and check to see if they match another number. Numerous applications, including data processing, string manipulation, and numerical analysis, frequently include this kind of operation. Programming approaches including converting numbers to strings, modular arithmetic, and the use of logical operators are used to solve this challenge. Beginner and intermediate programmers who want to get better at manipulating numbers and solving algorithmic issues should be interested in this topic. Methods There are various ... Read More
![Naveen Singh](https://www.tutorialspoint.com/assets/profiles/652652/profile/60_3316011-1683712915.jpeg)
341 Views
"Even-odd pairs" means to pairings of two consecutive integers, one is even and the other odd. For example, even-odd pairs include (2, 3), (4, 5), (6, 7), etc. These pairings are commonly employed in number changing-based algorithms and programming exercises. When repeating over a set of numbers, like, one could only want to carry out operation on even or odd numbers. When this occurs, employing even-odd pairs can aid in code simplification by lowering the number of conditional statements required. Method By swapping nearby even-odd pairings, you can apply the following strategies to determine the least number possible − ... Read More
![Naveen Singh](https://www.tutorialspoint.com/assets/profiles/652652/profile/60_3316011-1683712915.jpeg)
575 Views
Determining the number of unique strings that can be obtained by performing a set of given operations on a string is a common challenge in computer science and mathematics. Several operations, including character deletion, swapping, or string reversal, can be carried out on the string. The objective is to calculate the total count of different output strings achievable through these operations irrespective of their order. The problem-solving techniques applied for this task comprise dynamic programming, recursion, and combinatorics among others—depending upon the nature of specific operations undertaken. Methods To count the distinct possible strings after performing given operations, one ... Read More
![Naveen Singh](https://www.tutorialspoint.com/assets/profiles/688551/profile/60_1122769-1690780837.jpg)
5K+ Views
Pandas is a popular data analysis and manipulation library in Python. It offers powerful tools for reading, processing, and analyzing data, including the ability to store data in a DataFrame, which is a two-dimensional labeled data structure. One of the advantages of using Pandas is the ability to display DataFrame data in a table format, making it easy to visualize and understand the data. In this article, we will explore various ways to display a Pandas DataFrame in a table style. When working with DataFrames, it's often useful to display them in a table format. In this article, we will ... Read More
![Naveen Singh](https://www.tutorialspoint.com/assets/profiles/688551/profile/60_1122769-1690780837.jpg)
1K+ Views
Pandas is a powerful data analysis library that offers a wide range of functions to work with structured data. One of the most popular ways to represent data is through a heatmap, which allows you to visualize data in a tabular format with colours representing the values. In this article, we will explore how to display a Pandas DataFrame in a heatmap style using the Seaborn library. In data analysis and visualization, a heatmap is a popular tool used to display the relationship between variables in a tabular dataset. Heatmaps represent data as a grid of coloured squares, with each ... Read More
![Naveen Singh](https://www.tutorialspoint.com/assets/profiles/688551/profile/60_1122769-1690780837.jpg)
9K+ Views
Scientific notation is a standard way of representing numbers in the scientific and mathematical fields. However, in some cases, it may be more convenient to display these numbers in the traditional decimal format, also known as a floating-point format. Python provides a variety of ways to convert scientific notation to a float format. Scientific notation as float in Python One way to display scientific notation as a float in Python is by using the float() function. The float() function takes a string as input and returns a floating-point number. To convert a number in scientific notation to a float ... Read More
![Naveen Singh](https://www.tutorialspoint.com/assets/profiles/688551/profile/60_1122769-1690780837.jpg)
356 Views
In this article, we will explore how to display a NumPy array in Fortran order. By default, NumPy arrays are stored in row-major order (C-order), which means that the elements of the array are stored in consecutive memory locations row-wise. However, sometimes it is necessary to store and display arrays in column-major order (Fortran-order), especially in scientific computing applications. In NumPy, an array can be created in Fortran order using the order parameter of the np.array() function. Fortran order is also known as column-major order, which means that the elements of the array are stored column by column in ... Read More
![Naveen Singh](https://www.tutorialspoint.com/assets/profiles/688551/profile/60_1122769-1690780837.jpg)
1K+ Views
Displaying images on a terminal window can be a useful and fun feature to add to your Python programs. It can be used to create ASCII art, display diagrams or charts, or simply show images in a terminal-based interface. In this article, we'll explore how to display images on a terminal using Python. First, let's understand the basic concept of displaying images on a terminal. A terminal window is essentially a text-based interface that displays characters on the screen. Therefore, to display an image, we need to convert it into characters that can be displayed on a terminal. Types of ... Read More