๐ Exclusive Offer! Join our Telegram Channel to get **special discounts** and updates! ๐
Given three points a(x1, y1), b(x2, y2), and c(x3, y3), determine if they form a non-degenerate triangle. Then, check if two points, p(xp, yp) and q(xq, yq), are inside or on the triangle.
Return the corresponding scenario number:
0. The lines do not form a valid non-degenerate triangle.
1. Point p is inside the triangle, but point q is not.
2. Point q is inside the triangle, but point
Asked in: MEESHO
People Bought: 0
Price (in Rs): 151.00
Vowel SubString
Given a string composed of lowercase letters within the ASCII range 'a'-'z', determine the number of substrings that consist solely of vowels, where each vowel appears at least once. The vowels are ['a', 'e', 'i', 'o', 'u']. A substring is defined as a contiguous sequence of characters within the string.
Example
s = 'aeioaexaaeuiou'
There is a substring to the left that is
Asked in: MEESHO
People Bought: 0
Price (in Rs): 171.00
Take it apart
Given an array A of length N, Alex and Bob have decided to play a game called "Take it apart." At the beginning of the game, players pick a side of the array, either the start (S) or the end (E), and it's fixed for the rest of the game. Then, they start playing in turns. Alex goes first. They pick a number from their side and remove the number from the array. This number is cons
Asked in: Meesho
People Bought: 0
Price (in Rs): 151.00
A number x is called beautiful if the bitwise XOR of all elements from 0 to x is equal to x.
Task
Given an array A of N integers, find the number of beautiful elements in it.
Function Description
Complete the function solve() provided in the editor. This function takes the following parameters and returns the required answer:
- N: Represents the number of elements in the array
Asked in: Meesho
People Bought: 1
Price (in Rs): 151.00
The city of Hackerland can be represented using a grid with n rows and m columns containing an empty cell represented by a '*' and a blocked cell represented by a #. Traveling is allowed only through empty cells. The people of Hackerland are required to travel from a starting cell defined by the character 'S' to an ending cell represented by a character 'E'.
The people can jump a length of any
Asked in: Meesho
People Bought: 0
Price (in Rs): 201.00
Given an array of strings, each of the same length, and a target string, construct the target string using characters from the strings in the given array such that the indices of the characters in the order in which they are used form a strictly increasing sequence. Here the index of a character is the
position at which it appears in the string. Note that it is acceptable to use multiple characte
Asked in: Meesho
People Bought: 0
Price (in Rs): 251.00
A pixel color RGB is defined as a 24 bit integer. Each 8 bit integer (1 byte) represents either red, green or blue color. Each 8 bit integer has an integer value between 0 (Low intensity) and 255 (High intensity)
For the distance between two pixels having RGB values (r1, g1, b1) and (r2, 82, b2), it is calculated as follows:
d = square_root( (r1-r2)^2+ (g1-g2)^2+ (b1- b2)^2)
Given a 24-bi
Asked in: Meesho
People Bought: 0
Price (in Rs): 151.00