Prabhdeep Singh has Published 161 Articles

Kth Character After Replacing Each Character of String by its Frequency Exactly X Times

Prabhdeep Singh

Prabhdeep Singh

Updated on 25-Jul-2023 15:18:22

271 Views

In this problem we have given a string ‘str’, integer K, and integer X. That string ‘str’ contains only integers in the range between 1 to 9. We have to perform an operation over the string exactly X times. Operation is that every time we have to replace a character ... Read More

Convert given Strings into T by replacing characters in between strings any number of times

Prabhdeep Singh

Prabhdeep Singh

Updated on 25-Jul-2023 15:16:19

195 Views

Convert string means we have to make the same as a given string on the basis of a given condition. In this problem, we have given an array of strings ‘arr’ and string ‘T’ of size ‘M’. our task is to check if is it possible to make all the ... Read More

JavaScript Program to Find Minimum Insertions to Form a Palindrome

Prabhdeep Singh

Prabhdeep Singh

Updated on 12-Jul-2023 10:51:42

290 Views

We are given a string and we have to find the minimum number of different character that we need to insert in the given string at any place so that the final string will be palindrome. A palindrome is a string that is just equal to the reverse of it. ... Read More

JavaScript Program to Find Longest Common Prefix Using Word by Word Matching

Prabhdeep Singh

Prabhdeep Singh

Updated on 12-Jul-2023 10:08:00

417 Views

Prefixes are the substrings that start from the zeroth index of the given string and can be of any size from 1 to the complete length of the string. We are given a set of strings and we have to find the common prefix among all of them in the ... 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

304 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

607 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

500 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

342 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

278 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

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

196 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

Previous 1 ... 5 6 7 8 9 ... 17 Next
Advertisements