[Solved] Given an array nums of distinct integers, return all the possible permutations. You can return the answer in any order.Leetcode SolutionsAbhishek SharmaSeptember 7, 2022
[Solved] Given an array of non-negative integers nums, you are initially positioned at the first index of the array. Each element in the array represents your maximum jump length at that position.Leetcode SolutionsAbhishek SharmaSeptember 7, 2022
[Solved] Given two non-negative integers num1 and num2 represented as strings, return the product of num1 and num2, also represented as a string. Note: You must not use any built-in BigInteger library or convert the inputs to integer directly.Leetcode SolutionsAbhishek SharmaSeptember 7, 2022
[Solved] Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it can trap after raining.Leetcode SolutionsAbhishek SharmaSeptember 7, 2022
[Solved] Given an unsorted integer array nums, return the smallest missing positive integer. You must implement an algorithm that runs in O(n) time and uses constant extra space.Leetcode SolutionsAbhishek SharmaSeptember 7, 2022
[Solved] Given a collection of candidate numbers (candidates) and a target number (target), find all unique combinations in candidates where the candidate numbers sum to target. Each number in candidates may only be used once in the combination.Leetcode SolutionsAbhishek SharmaSeptember 7, 2022
[Solved] Given an array of distinct integers candidates and a target integer target, return a list of all unique combinations of candidates where the chosen numbers sum to target. You may return the combinations in any order.Leetcode SolutionsAbhishek SharmaSeptember 7, 2022
[Solved] The count-and-say sequence is a sequence of digit strings defined by the recursive formula: countAndSay(1) = “1”, countAndSay(n) is the way you would “say” the digit string from countAndSay(n-1), which is then converted into a different digit string.Leetcode SolutionsAbhishek SharmaSeptember 7, 2022
[Solved] Write a program to solve a Sudoku puzzle by filling the empty cells. A sudoku solution must satisfy all of the following rules: Each of the digits 1-9 must occur exactly once in each row.Leetcode SolutionsAbhishek SharmaSeptember 7, 2022
[Solved] Determine if a 9 x 9 Sudoku board is valid. Only the filled cells need to be validated according to the following rules: Each row must contain the digits 1-9 without repetition.Leetcode SolutionsAbhishek SharmaSeptember 7, 2022
[Solved] Given a sorted array of distinct integers and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order. You must write an algorithm with O(log n) runtime complexity.Leetcode SolutionsAbhishek SharmaSeptember 7, 2022
[Solved] Given an array of integers nums sorted in non-decreasing order, find the starting and ending position of a given target value. If target is not found in the array, return [-1, -1].Leetcode SolutionsAbhishek SharmaSeptember 6, 2022
[Solved] There is an integer array nums sorted in ascending order (with distinct values). Prior to being passed to your function, nums is possibly rotated at an unknown pivot index k (1 <= k < nums.length) such that the resulting array is [nums[k], nums[k+1], ..., nums[n-1], nums[0], nums[1], ..., nums[k-1]] (0-indexed). For example, [0,1,2,4,5,6,7] might be rotated at pivot index 3 and become [4,5,6,7,0,1,2].Leetcode SolutionsAbhishek SharmaSeptember 6, 2022
[Solved] Given a string containing just the characters ‘(‘ and ‘)’, find the length of the longest valid (well-formed) parentheses substring.Leetcode SolutionsAbhishek SharmaSeptember 6, 2022
[Solved] A permutation of an array of integers is an arrangement of its members into a sequence or linear order.Leetcode SolutionsAbhishek SharmaSeptember 6, 2022
[Solved] Given two strings needle and haystack, return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.Leetcode SolutionsAbhishek SharmaSeptember 6, 2022
[Solved] Given an integer array nums sorted in non-decreasing order, remove the duplicates in-place such that each unique element appears only once. The relative order of the elements should be kept the same.Leetcode SolutionsAbhishek SharmaSeptember 6, 2022
[Solved] Given a linked list, swap every two adjacent nodes and return its head. You must solve the problem without modifying the values in the list’s nodes (i.e., only nodes themselves may be changed.)Leetcode SolutionsAbhishek SharmaSeptember 6, 2022
[Solved] You are given an array of k linked-lists lists, each linked-list is sorted in ascending order. Merge all the linked-lists into one sorted linked-list and return it.Leetcode SolutionsAbhishek SharmaSeptember 6, 2022
[Solved] Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.Leetcode SolutionsAbhishek SharmaSeptember 6, 2022