Substrings are the subsets or sequences of contiguous characters of a string. Now, in this problem, we need to find the number of substrings with the frequency of at most one character as odd. Let us see how we should proceed to solve this problem. Let’s try to understand this problem with the help of some examples. Input s = “ksjssjkk” Output 21 Explanation − As the frequency of the characters in the given string is given below− k → 3 s → 3 j → 2 Now, substrings with ... Read More
A numerical string is used to store a value of a number if we want to store a huge valued integer. As we know, we can not store a number greater than 32 bits in the computer with its datatype as int. So to avoid the overflowing condition, in this problem, we will take a numerical string as our input rather than an int variable so that we can work this problem on a larger scale of numbers. Problem Statement Now, in this problem, we need to find the following number by adding natural numbers in order on alternating indices ... Read More
There are 26 total different alphabets exist in the English language. If we want to change the alphabet characters into numerical values then we need to assign the alphabet, values between 1 to 26 only. Now, in this problem, we need to Maximize the String value by assigning values in the range [1, 26] to each character. Let us see how we should proceed to solve this problem. Let’s try to understand this problem with the help of some examples. Input s = “blpsBpPtT” Output 221 Explanation Here, in this ... Read More
Concatenation is an operator which is used to join one or more than one string to originate a new string which would be a combination of strings that were used to generate it with the help of concatenation. In the following article, we will take the uppercase letters only in the input string. Concatenation is an operator which is used to join one or more than one string to originate a new string which would be a combination of strings that were used to generate it with the help of concatenation. In the following article, we will take the uppercase ... Read More
Introduction Complex numbers make it simpler to find the square root of negative values. The concept of complex numbers was first presented when Hero of Alexandria, a Greek mathematician, attempted to compute the square root of a negative number in the first century. However, he made the integers' negative values positive and got their root values. Additionally, the identity of complex numbers was established when the third- and second-order polynomials' negative roots were discovered by the Italian mathematician Gerolamo Cardano in the sixteenth century. Numerous scientific research, including those involving signal processing, electromagnetism, fluid physics, quantum mechanics, and vibration ... Read More
Introduction Mathematical reasoning, a crucial skill that enables pupils to examine a given hypothesis without reference to a specific context or meaning, includes conditional statements. The reasoning is not based on an individual's opinion when a scientific investigation or assertion is investigated, to put it simply. The basis for deductions and proofs must be factual and scientific. To answer issues involving mathematical reasoning, one needs to possess critical thinking and logical reasoning abilities in mathematics. We will delve into the world of conditional statements in this quick session. Along with solved examples and interactive questions, we will go over ... Read More
Introduction When a solid surface like a cone is cut by a plane it forms different sections called conic sections. There are different conic sections like a circle, ellipse, parabola, and hyperbola based on the angle at which the plane intersects with the cone axis. Circle and ellipse are closed sections whereas parabola and hyperbola are not closed the curves of these figures extend till infinity. Definition of Section of Cone When a two-dimensional plane intersects a three-dimensional right circular cone the crop section formed on the plane is called a conic section. The plane intersects the ... Read More
Introduction A triangle has three sides, and three angles these two are the important parameters in constructing a triangle. It is done using a few geometrical equipment like a protractor (to measure an angle), compass (to draw the arc for a given measured side), and ruler (to measure the side length). There are different types of triangles, and they can be constructed differently by knowing a few given sets of parameters. In this tutorial let’s see three of the cases. Construction of Triangles In general, the construction of triangles is easy when the following properties like SSS, SAS, ... Read More
Introduction The study of geometric figures using coordinate axes is known as coordinate geometry. Figures like circles, ellipses, polygons, and straight lines can be drawn and scaled on the coordinate axes with ease. Additionally, coordinate geometry facilitates algebraic operations and the study of the properties of geometric figures. Every location on this globe has coordinates that make it simple for us to find them on a map. Our planet's coordinate system is made up of fictitious lines known as latitudes and longitudes. We have the coordinate axes with the horizontal x-axis and the vertical y- axis, which are similar ... Read More
Introduction This article simplifies how you can leverage real-world examples, syntaxes and programming techniques in PL/SQL to master printing different types of patterns effectively. Examples of Pattern Printing in PL/SQL We'll cover how to create pyramid patterns, diamond patterns, and number patterns with their respective code snippets and syntax. Going through the present section, you will have a clear understanding of how to implement these patterns in your PL/SQL programs. Pyramid Pattern For a comprehensive understanding of pattern printing in PL/SQL, delving into the pyramid pattern is an ideal starting point. Here's how to design a pyramid pattern using ... Read More
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP