[Solved] Given two integer arrays nums1 and nums2, return an array of their intersection. Each element in the result must appear as many times as it shows in both arrays and you may return the result in any order.Leetcode SolutionsAbhishek SharmaSeptember 25, 2022
[Solved] Given two integer arrays nums1 and nums2, return an array of their intersection. Each element in the result must be unique and you may return the result in any order.Leetcode SolutionsAbhishek SharmaSeptember 25, 2022
[Solved] Given a string s, reverse only all the vowels in the string and return it.Leetcode SolutionsAbhishek SharmaSeptember 25, 2022
[Solved] Write a function that reverses a string. The input string is given as an array of characters s.Leetcode SolutionsAbhishek SharmaSeptember 25, 2022
[Solved] Given an integer n, return true if it is a power of four. Otherwise, return false.Leetcode SolutionsAbhishek SharmaSeptember 25, 2022
[Solved] Given an integer n, return an array ans of length n + 1 such that for each i (0 <= i <= n), ans[i] is the number of 1's in the binary representation of i.Leetcode SolutionsAbhishek SharmaSeptember 25, 2022
[Solved] Given the head of a singly linked list, group all the nodes with odd indices together followed by the nodes with even indices, and return the reordered list. The first node is considered odd, and the second node is even, and so on.Leetcode SolutionsAbhishek SharmaSeptember 25, 2022
[Solved] Given an integer n, return true if it is a power of three. Otherwise, return false.Leetcode SolutionsAbhishek SharmaSeptember 25, 2022
[Solved] Given an integer array nums, return the length of the longest strictly increasing subsequence. A subsequence is a sequence that can be derived from an array by deleting some or no elements without changing the order of the remaining elements. For example, [3,6,2,7] is a subsequence of the array [0,3,1,6,2,2,7].Leetcode SolutionsAbhishek SharmaSeptember 25, 2022
[Solved] Serialization is the process of converting a data structure or object into a sequence of bits so that it can be stored in a file or memory buffer, or transmitted across a network connection link to be reconstructed later in the same or another computer environment.Leetcode SolutionsAbhishek SharmaSeptember 25, 2022
[Solved] The median is the middle value in an ordered integer list. If the size of the list is even, there is no middle value and the median is the mean of the two middle values.Leetcode SolutionsAbhishek SharmaSeptember 25, 2022
[Solved] You are playing the following Nim Game with your friend: Initially, there is a heap of stones on the table. You and your friend will alternate taking turns, and you go first. On each turn, the person whose turn it is will remove 1 to 3 stones from the heap. The one who removes the last stone is the winner.Leetcode SolutionsAbhishek SharmaSeptember 25, 2022
[Solved] Given a pattern and a string s, find if s follows the same pattern. Here follow means a full match, such that there is a bijection between a letter in pattern and a non-empty word in s.Leetcode SolutionsAbhishek SharmaSeptember 25, 2022
[Solved] Given an integer array nums, move all 0’s to the end of it while maintaining the relative order of the non-zero elements.Leetcode SolutionsAbhishek SharmaSeptember 25, 2022
[Solved] You are a product manager and currently leading a team to develop a new product. Unfortunately, the latest version of your product fails the quality check. Since each version is developed based on the previous version, all the versions after a bad version are also bad.Leetcode SolutionsAbhishek SharmaSeptember 25, 2022
[Solved] Given an array nums containing n distinct numbers in the range [0, n], return the only number in the range that is missing from the array.Leetcode SolutionsAbhishek SharmaSeptember 25, 2022
[Solved] Given an integer num, repeatedly add all its digits until the result has only one digit, and return it.Leetcode SolutionsAbhishek SharmaSeptember 25, 2022
[Solved] Given the root of a binary tree, return all root-to-leaf paths in any order.Leetcode SolutionsAbhishek SharmaSeptember 25, 2022
[Solved] Given two strings s and t, return true if t is an anagram of s, and false otherwise.Leetcode SolutionsAbhishek SharmaSeptember 25, 2022
[Solved] You are given an array of integers nums, there is a sliding window of size k which is moving from the very left of the array to the very right. You can only see the k numbers in the window. Each time the sliding window moves right by one position.Leetcode SolutionsAbhishek SharmaSeptember 25, 2022