Prabhdeep Singh has Published 188 Articles

Karatsuba Algorithm for Fast Multiplication of Large Decimal Numbers Represented as Strings

Prabhdeep Singh

Prabhdeep Singh

Updated on 11-Jul-2023 21:20:07

519 Views

We are not able to store the large decimal numbers in normal data types such as the int or even in long long, so we store them in the string. When we multiply two integers represented in the form of a string it takes a lot of time more specifically ... Read More

PHP Program for Converting Roman Numerals to Decimal Lying Between 1 to 3999

Prabhdeep Singh

Prabhdeep Singh

Updated on 11-Jul-2023 18:08:03

237 Views

The characters used in an arrangement of numeric notation based on the pre-Roman Roman system are known as Roman numerals. All major symbols are covered in the section below. In this problem, we are given a string of Roman numerals and our task is to convert Roman numerals to decimals ... Read More

Python Program To Write Your Own atoi()

Prabhdeep Singh

Prabhdeep Singh

Updated on 11-Jul-2023 17:08:47

528 Views

We are given a string that may represent a number and if it is a valid number then we have to convert it into an integer using the Python programming language. atoi() function is used in C programming language and used to convert the string which is passed as ... Read More

C Program to Find Minimum Insertions to Form a Palindrome

Prabhdeep Singh

Prabhdeep Singh

Updated on 11-Jul-2023 16:57:21

415 Views

A palindrome is a string that is just equal to the reverse of it. We are given a string and we have to find the minimum number of insertions of any characters required to make the given string as the palindrome. We will see the three approaches: first recursive approach, ... Read More

Convert a Binary String to Another by Flipping Prefixes a Minimum Number of Times

Prabhdeep Singh

Prabhdeep Singh

Updated on 11-Jul-2023 16:24:09

269 Views

Prefixes are the substrings that start from the zeroth index and could be of any size from 1 to the length of the given string. We are given two binary string which means both strings contain only two different types of characters and we have to make the first string ... Read More

Largest Roman Numeral Possible by Rearranging Characters of a Given String

Prabhdeep Singh

Prabhdeep Singh

Updated on 11-Jul-2023 16:07:53

196 Views

The characters represent Roman numbers: 'I', 'V', 'X', 'L', 'C', 'D', and 'M'. We will be given a string that may contain another character also (all the characters will be uppercase English alphabets) and we have to find the largest Roman numerical number possible by altering the position of the ... Read More

Python3 Program to Minimize Characters to be Changed to Make the Left and Right Rotation of a String the Same

Prabhdeep Singh

Prabhdeep Singh

Updated on 11-Jul-2023 15:05:05

123 Views

Rotation means we have to shift each character either in a forward direction or backward direction. Forward direction means right rotation (Or anticlockwise) and backward direction means left rotation (Or clockwise). In this problem, we have given a string of size n. Our task is to find the minimum number ... Read More

PHP Program to Check if all rows of a matrix are circular rotations of each other

Prabhdeep Singh

Prabhdeep Singh

Updated on 11-Jul-2023 14:50:21

140 Views

A rectangular array called a matrix is made up of rows and columns. And circular rotations entail rotating the array's elements so that after one rotation, the last member is in the first position and the other elements are shifted to the right. We are given an N*N matrix in ... Read More

Java Program to Check if all Rows of a Matrix are Circular Rotations of Each Other

Prabhdeep Singh

Prabhdeep Singh

Updated on 11-Jul-2023 14:14:22

209 Views

Matrix consists of rows and columns to form a rectangular array. And circular rotations mean rotating the array's elements so that one rotation places the last element in the first position and the rest of the elements to the right. In this problem, we have given a matrix of n ... Read More

Java Program for Converting Roman Numerals to Decimal Lying Between 1 to 3999

Prabhdeep Singh

Prabhdeep Singh

Updated on 11-Jul-2023 14:05:25

655 Views

The characters used in an arrangement of number notation based on the pre-Roman Roman system is called Roman numerals. The letters M, D, C, L, X, V, and I stand for 1000, 500, 1000, 50, 10, 5, and 1, respectively, and will discuss all main symbols in the below section. ... Read More

Previous 1 ... 6 7 8 9 10 ... 19 Next
Advertisements