String Programs Q1 : Write a Program to input a string and a substring and then check for the occurrence of a substring in it. Code : sentence =...
Background Properties CSS provides various properties to style the background of elements. Here are some commonly used ones: 1 . background-color:...
Kth smallest element Given an array arr[] and an integer K where K is smaller than size of array, the task is to find the Kth smallest element in the...
450DSA Cracker Solution ยท Given an array which consists of only 0, 1 and 2. Sort the array without using any sorting algo Sort an array of 0s, 1s and...
Find minimum and maximum element in an array Given an array A of size N of integers. Your task is to find the minimum and maximum elements in the...
Reverse a String Given a String S , print the reverse of the string as output. class Solution { public: string revStr(string S) { ...