Given a string s, find the maximum length of substring that contains only one unique character. String contains only lowercase. Examples : Input : s = abbcccb Output : 3 Explanation : Read more →
Latest tutorials
505 postsWrite a program in Php to sort an array of objects by any object field. Here, we will take a array of student with fields as Id, Name, Marks. Then we will Read more →
The ordering of elements matters in certain collection types. For example, two lists having same elements are not the same if their elements have been ordered differently. In Kotlin, the order of Read more →
Given an array and a integer k. You have to find a minimum length sub array such that sum of this sub array is equal to k. If found return starting and Read more →
A number is called an Automorphic Number if and only if its square ends in the same digits as the number itself. Given a positive number N, the task is to determine Read more →
Problem Statement: Given a string “ABCCBCBA”, give an algorithm for recursively removing the adjacent characters if they are the same. Example : ABCCBCBA ---> ABBCBA (after removing both the C at index Read more →
Write program to replace every ‘#’ symbol with a binary number 0 and 1 and generate all possible combination Examples : Input : 11#1 Output : 1101 1111 Input : 1#1# Output Read more →
Given a binary tree, print the top-Right view of it. The top view of a binary tree is the set of nodes visible when the tree is viewed from the top. The Read more →
Introduction : Number System is a method of representing Numbers on the Number Line with the help of a set of Symbols and rules. These symbols range from 0-9 and are termed Read more →
One of the most important concepts in OOPS is protected access modifiers ,you know there are instances when protecting your identity, your data is your at most priority . we use private Read more →