DSDhananjay Sahooinlanzkrish.hashnode.dev·Aug 29, 2022 · 1 min readValid ParenthesesGiven a string s containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. An input string is valid if: Open brackets must be closed by the same type of brackets. Open brackets must be closed in the corre...00
DSDhananjay Sahooinlanzkrish.hashnode.dev·Aug 25, 2022 · 2 min readMedian of Two Sorted ArraysGiven two sorted arrays nums1 and nums2 of size m and n respectively, return the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)). Example 1: Input: nums1 = [1,3], nums2 = [2] Output: 2.00000 Explanation: merged...00
DSDhananjay Sahooinlanzkrish.hashnode.dev·Aug 24, 2022 · 2 min readPalindrome NumberGiven an integer x, return true if x is palindrome integer. An integer is a palindrome when it reads the same backward as forward. For example, 121 is a palindrome while 123 is not. Example 1: Input: x = 121 Output: true Explanation: 121 reads as 121...00
DSDhananjay Sahooinlanzkrish.hashnode.dev·Aug 23, 2022 · 1 min readTwo SumGiven an array of integers nums and an integer target, return indices of the two numbers such that they add up to target. You may assume that each input would have exactly one solution, and you may not use the same element twice. You can return the a...00
DSDhananjay Sahooinlanzkrish.hashnode.dev·Aug 19, 2022 · 3 min readStarting with C#C Sharp Object Oriented Platform Independent Language Independent It is used to develop desktop, mobile, websites. It has more than 87 keywords. How to run a C# program: There are 3 ways to compile and execute a C# program. To use an Online Compil...00