You are given a string num consisting of digits only.
num
Return the largest palindromic integer (in the form of a string) that can be formed using digits taken from num. It should not contain leading zeroes.
You are given the root of a binary tree with unique values, and an integer…
root
This problem appeared on Daily Codings. But I took the problem statement from Geekforgeeks.
Given a Binary Tree, we need to print the bottom view from left to right. A node x is there in output if x is the bottommost node at its horizontal distance. The…
Dutch national flag problem appeared in leetcode as well. Here it:
You are given two 0-indexed integer arrays nums1 and nums2, both of length n.
nums1
nums2
n
You are given a 0-indexed m x n integer matrix grid consisting of distinct integers from 0 to m * n - 1. You…
m x n
grid
0
m * n - 1