1514. Path with Maximum Probability
You are given an undirected weighted graph of n nodes (0-indexed), represented by an edge list where edges[i] = [a, b] is an undirected […]
You are given an undirected weighted graph of n nodes (0-indexed), represented by an edge list where edges[i] = [a, b] is an undirected […]
Given an integer array arr of integers, the task is to find the maximum absolute difference between the nearest left smaller element and the nearest right
Given the root of an n-ary tree, return the postorder traversal of its nodes’ values. Nary-Tree input serialization is represented in their level
Given two strings pattern and str which may be of different size, You have to return 1 if the wildcard pattern i.e. pattern, matches with str else return 0. All characters of
Given the root of a binary tree, return the postorder traversal of its nodes’ values. Example 1: Input: root = [1,null,2,3] Output: [3,2,1] Example
Given two positive integer arrays arr and brr, find the number of pairs such that xy > yx (raised to power of) where x is an element from arr and y is an
Given a string n representing an integer, return the closest integer (not including itself), which is a palindrome. If there is a tie,
You are given weights and values of items, and put these items in a knapsack of capacity W to get the maximum
Given a string expression representing an expression of fraction addition and subtraction, return the calculation result in string format. The final result
Given a Binary Tree, return Left view of it. Left view of a Binary Tree is set of nodes visible
The complement of an integer is the integer you get when you flip all the 0‘s to 1‘s and all the 1‘s to 0‘s in its
Given a sorted dictionary of an alien language having N words and k starting alphabets of standard dictionary. Find the order