Given a 2D array, find the maximum sum subarray in it. For example, in the following 2D array, the maximum sum subarray is highlighted with blue rectangle and sum of...
Share
The imagefilledrectangle() function is an inbuilt function in PHP which is used to create a filled rectangle. This function creates a rectangle filled with given colo...
Share
The imagerectangle() function is an inbuilt function in PHP which is used to draw the rectangle.
Syntax:
bool imagerectangle( $image, $x1, $y1, $x2, $y2, $color )
Par...
Share
The ImagickDraw::rectangle() function is an inbuilt function in Imagick library of PHP which is used to draw a rectangle.
Syntax:
bool ImagickDraw::rectangle( $x1, $y...
Share
The ImagickDraw::roundRectangle() function is an inbuilt function in Imagick library of PHP which is used to draw a rounded rectangle.
Syntax:
bool ImagickDraw::round...
Share
Prerequisite – PL/SQL introduction
In PL/SQL code groups of commands are arranged within a block. A block group related declarations or statements. In declare ...
Share
rectangle() is used to draw a rectangle. Coordinates of left top and right bottom corner are required to draw the rectangle. left specifies the X-coordinate of top le...
Share
Given a 2D array, find the maximum sum subarray in it. For example, in the following 2D array, the maximum sum subarray is highlighted with blue rectangle and sum of...
Share
We are given four segments as a pair of coordinates of their end points. We need to tell whether those four line segments make a rectangle or not.
Examples:
Input : s...
Share
Given two rectangles, find if the given two rectangles overlap or not.
Note that a rectangle can be represented by two coordinates, top left and bottom right. So mai...
Share