Sunidhi Bansal has Published 1100 Articles

Functions that cannot be overloaded in C++

Sunidhi Bansal

Sunidhi Bansal

Updated on 13-Aug-2020 06:09:03

1K+ Views

Function overloading is also known as method overloading. Function overloading is the feature provided by the concept of polymorphism which is widely used in object-oriented programming.To achieve function overloading, functions should satisfy these conditions −Return type of functions should be sameName of the functions should be sameParameters can be different ... Read More

multimap find( ) in C++ STL

Sunidhi Bansal

Sunidhi Bansal

Updated on 13-Aug-2020 06:05:07

2K+ Views

In this article we will be discussing the working, syntax and examples of multimap::find() function in C++ STL.What is Multimap in C++ STL?Multimaps are the associative containers, which are similar to map containers. It also facilitates to store the elements formed by a combination of key value and mapped value ... Read More

Content Spoofing

Sunidhi Bansal

Sunidhi Bansal

Updated on 04-Aug-2020 13:37:59

445 Views

Content Spoofing is the term used to define the type of attack by malicious programmers in which they present a fake website as a legitimate one to the user by text injection or html injection. When a web application does not properly handle the data supplied by the user using ... Read More

Maximum elements which can be crossed using given units of a and b in C++

Sunidhi Bansal

Sunidhi Bansal

Updated on 04-Aug-2020 13:02:27

46 Views

Given a binary array arr[] and two variables a and b with some initial values. To cross an element in the array arr[] there are two ways −If arr[i] == 1, then 1 unit can be used from a, with no change in b. If 1 unit is used from ... Read More

Maximum elements that can be made equal with k updates in C++

Sunidhi Bansal

Sunidhi Bansal

Updated on 04-Aug-2020 12:53:47

228 Views

Given the task is to find the maximum number of elements that can be made equal in a given array after incrementing its elements by at-most k times.Let’s now understand what we have to do using an example −Inputa[] = {1, 3, 8}, k = 4Output2ExplanationHere we can obtain two ... Read More

Maximum distinct lowercase alphabets between two uppercase in C++

Sunidhi Bansal

Sunidhi Bansal

Updated on 04-Aug-2020 12:50:31

228 Views

Given the task is to find the maximum number of distinct lower case alphabets that are present between two upper case alphabets in the given string.Let’s now understand what we have to do using an example −Inputstr = “JKyubDoorG”Output3Explanation“yub” is present between the two upper case alphabets K and D ... Read More

Maximum difference of zeros and ones in binary string in C++

Sunidhi Bansal

Sunidhi Bansal

Updated on 04-Aug-2020 12:45:15

239 Views

Given the task is to find a sub-string from a given binary string and then the maximum difference between the number of zeroes and the ones.Let’s now understand what we have to do using an example −Inputstr = “100100110”Output2ExplanationIn the sub-array from the position 1 to 5 (“00100”), the difference ... Read More

Maximum difference of zeros and ones in binary string - (O(n) time) in C++

Sunidhi Bansal

Sunidhi Bansal

Updated on 04-Aug-2020 12:41:03

84 Views

Given the task is to find a sub-string from a given binary string and then the maximum difference between the number of zeroes and the ones.Let’s now understand what we have to do using an example −Inputstr = “10010110”Output2ExplanationIn the sub-array from the position 1 to 4 (“0010”), the difference ... Read More

Maximum decimal value path in a binary matrix in C++

Sunidhi Bansal

Sunidhi Bansal

Updated on 04-Aug-2020 12:37:54

98 Views

Given the task is to find the maximum integer value that can be obtained while travelling in a path from the top left element to the bottom right element of a given square binary array, that is, starting from index [0][0] to index [n - 1][n - 1].While covering the ... Read More

Maximum count of substrings of length K consisting of same characters in C++

Sunidhi Bansal

Sunidhi Bansal

Updated on 04-Aug-2020 12:32:59

277 Views

Given the task is to find the maximum count of substrings of length K consisting of same characters. Given a string s and another integer K, we have to count the occurrence of sub-strings of size K that have same characters.Out of the sub-strings that are found, we have to ... Read More

Advertisements