All Basic Articles
Given an array of integers. The task is to calculate the product of all the composite numbers in an array.  Note: 1 is neither prime… Read More
The ImagickDraw::scale() function is an inbuilt function in PHP which is used to adjust the scaling factor to apply in the horizontal and vertical directions… Read More
The ImagickDraw::setTextUnderColor() function is an inbuilt function in PHP which is used to set the color of a background rectangle to place under text annotations.… Read More
Given three numbers. The task is to find the smallest among the given three numbers.  Examples:  Input: first = 15, second = 16, third =… Read More
The Imagick::rollImage() function is an inbuilt function in PHP which is used to roll an image. Syntax: bool Imagick::rollImage( $x, $y ) Parameters: This function… Read More
The ImagickDraw::setTextDecoration() function is an inbuilt function in PHP which is used to specify the decoration to be applied when annotating with text. Syntax: bool… Read More
The ImagickDraw::setViewbox() function is an inbuilt function of PHP which is used to set the overall canvas size. This function set the overall canvas size… Read More
The Imagick::identifyImage() function is an inbuilt function in PHP which is used to identify an image and return its attributes. Attributes contain image width, height,… Read More
Given an array of N elements and an integer M. Now, the array is modified by replacing some of the array elements with -1. The… Read More
Given a string str, the task is to find the lexicographically smallest string that can be formed by removing at most one character from the… Read More
Given two sequences of integers ‘A’ and ‘B’, and an integer ‘k’. The task is to check if we can make both sequences equal by… Read More
Given an array ‘arr’ of positive integers, the task is to count the number of composite numbers in the array.  Note: 1 is neither Prime… Read More
Given an array of N integers and a number K, the task is to find the number of subarrays such that all elements are greater… Read More
Given an array with n elements. The task is to find the maximum number of contiguous array elements which have the same number of set… Read More
The accept-charset attribute is used to define the character encoding and is used for form submission. The default value of the accept-charset attribute is “UNKNOWN”… Read More
The onoffline event attribute works when the browser works in offline mode. It is the opposite of ononline event attribute. It is activated when the… Read More
The ImagickDraw::setStrokeMiterLimit() function is an inbuilt function in PHP which is used to specify the miter limit of stroke. When two line segments are meet… Read More
The ImagickDraw::setFontStyle() function is an inbuilt function in PHP which is used to set the font style to use when annotating with text. The AnyStyle… Read More
The ImagickDraw::setFont() function is an inbuilt function in PHP which is used to set the fully-specified font to use when annotating with text. Syntax: bool… Read More
Given a string with lowercase English alphabets. The task is to replace all the consonants in the string with the nearest vowels. If a consonant… Read More