Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Programming Articles - Page 341 of 2896
403 Views
In C++, we have predefined function max() that will be used for finding any longest substring that does contain any palindrome. A palindrome string is a group of characters that remains the same even after reversing. Let’s take an example of a palindrome string to make the longest non-palindrome substring. The string malayalam itself is a palindrome but we need to identify the longest non-palindrome substring. When we change the string malayalam( length=9 ) to alayalam then we get the longest non-palindrome substring length i.e, 8. The string synapse is a non-palindrome string and its length is 7. ... Read More
765 Views
In C++ we have an inbuild reverse() function that will be used for reversing the substring to check whether a string can be made lexicographically smaller or not. Lexicographic ordering is the process by which the character of a word is sorted in a dictionary. Let’s take an example of a string to check lexicographically smaller or not. We will compare the two words to check the lexicographically smaller ones and take two strings namely ‘apple’ and ‘army’. Both these strings of the first letter starting with letter ‘a’. When we move to check the second character of both ... Read More
468 Views
This article will help us understand how to replace the consecutive consonant sequence with its length in the given string. Consonants are series of alphabetical letters that are not vowels. Here we need to first identify which letter in the string are consonants. For example, in the word “abcdiopqrsu”, the consonant sequence “bcd” and “pqrs”. Next, we would replace each consonant sequence with its length. So the word “bcd” would replace with “3” because there are three consecutive consonants, and the same with the word “pqrs” replace with “4” as there are four consecutive consonants. Algorithm First, we ... Read More
4K+ Views
In mathematics, the divisibility rule of 5 states that if the number ends with 0 or 5 then it will divisible by 5. There is another way to identify the divisibility rule of 5, if the remainder comes to 0 it returns the number is divisible by 5. The mod(%) operator is normally used in programming when it comes to divisibility. Following are some examples which helps you to understand the divibility rule of 5 − Given number is 525, the number ends with 5 and it is divisible by 5. Given number is 7050, the number ends with ... Read More
3K+ Views
In data science, data is represented in various formats, such as tables, graphs, or any other types of structures. One of the most common data structures used to represent data is a DataFrame, which can be created using an array or a series. In this document, we will discuss how to create DataFrames from a Pandas Series object. Importance of Dataframe in data science! Dataframe is a two-dimensional table-like data structure that is widely used in data science. It is a very important tool for data manipulation, data analysis, and data visualization. Here are some of the key advantages of ... Read More
709 Views
What is Python and what are its advantages? Python is a high-level programming language that is used for a wide range of applications, including web development, scientific computing, data analysis, and artificial intelligence. It has a simple and elegant syntax that makes it easy to read and write, and a large standard library that provides many useful tools and functions. Some of the advantages of Python include its readability, ease of use, flexibility, and portability. It is an open-source language, which means that it is freely available and can be modified and distributed by anyone. Python also has a large ... Read More
1K+ Views
Lyrics are the words that are sung in a song that conveys the meaning and emotions of a song. Python offers several libraries to extract lyrics from a song. In this tutorial, we will create a Graphical User Interface (GUI) using Python’s tkinter library that extracts lyrics from a song. What are the different formats in which songs are available online? There are several formats in which songs are available online, depending on the platform and the type of file. Some of the most common formats are − MP3 (MPEG Audio Layer 3) − This is the most common format ... Read More
1K+ Views
As businesses grow and expand, they need to manage a lot of information. This information may come in different formats, and being able to convert them to the right format is important for the smooth running of business operations. One of the ways to handle this is by converting CSV files to excel format. In this tutorial, we will build a Graphical User Interface (GUI) in Python to convert CSV files to excel files. What is a CSV file and what are importance of using CSV files in python A CSV (Comma Separated Values) file is a plain text file ... Read More
1K+ Views
What is the need for weather forecast? Weather forecasting is an essential aspect of human existence. In recent times, technological advancements have made it easier to predict weather with high accuracy. openweathermap is a popular API that allows developers to retrieve weather data. In this tutorial, we will create a graphical user interface (GUI) for weather forecast using openweathermap API in Python. This tutorial will cover the necessary steps for building a GUI and retrieving data from openweathermap API. Prerequisites Before we dive into the task few things should is expected to be installed onto your system − List of ... Read More
1K+ Views
What are the uses of gauss pulse? Gaussian pulses are widely used in signal processing, particularly in radar, sonar, and communications. This pulse is a pulse that has a Gaussian shape in the time domain, which makes it useful for detecting small signals that may be obscured by noise. In this tutorial, we will explore how to generate a Gaussian pulse using the scipy.signal.gausspulse function. What is a Gaussian Pulse? Gaussian pulses are a type of function that has a Gaussian-shaped envelope in the time domain. The Gaussian function is a bell-shaped curve that is symmetrical around its peak. It ... Read More