Prabhdeep Singh has Published 197 Articles

Java Program to Find Length of the Longest Substring Without Repeating Characters

Prabhdeep Singh

Prabhdeep Singh

Updated on 11-Jul-2023 16:49:26

691 Views

The substrings are part of the string which contains the continuous character of the string of any length from 1 to complete string. We are given a string and we have to find the length of the largest substring from the given string that only contains the unique characters. We ... Read More

Java Program To Write Your Own atoi()

Prabhdeep Singh

Prabhdeep Singh

Updated on 11-Jul-2023 16:37:42

311 Views

atoi() function is used in C programming language and used to convert the string which is passed as the parameter to it into an integer value if the string is a valid integer otherwise it shows the undefined behavior. We will implement the atoi() function in the Java programming language. ... Read More

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

Prabhdeep Singh

Prabhdeep Singh

Updated on 11-Jul-2023 16:31:33

228 Views

We are given a set of strings and we have to find the common prefix among all of them. Prefix is a substring for a string that contains the zero index and could be of any length from 1 to a complete string. We will implement a Java program with ... 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

124 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

56 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

40 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

57 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

101 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

255 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

JavaScript Program To Write Your Own atoi()

Prabhdeep Singh

Prabhdeep Singh

Updated on 11-Jul-2023 11:42:17

112 Views

In C programming language we have a function that takes a single string or character array as the parameter and returns an integer that may be represented by the given string, if the current string is invalid then it reads only up to the first valid index and will return ... Read More

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