Regular Expression Matching
Regular Expression Matching Given an input string(s) and a pattern (p), implement regular expression matching with support for '.' and '*' where: '.' Matches an…
Continue ReadingExplore the latest articles and tutorials in
Regular Expression Matching Given an input string(s) and a pattern (p), implement regular expression matching with support for '.' and '*' where: '.' Matches an…
Continue ReadingEdit Distance Given two strings, word1, and word2, return the minimum number of operations required to convert word1 to word2. You have the following three operations permit…
Continue ReadingTarget Sum You are given an integer array nums and an integer target. You want to build an expression out of nums by adding one of the symbols '+' and '-' before each integer i…
Continue ReadingUnique Paths A robot is located at the top-left corner of a m*n grid(marked 'Start' in the diagram below). The robot can only move either down or right at any point in time. The robot i…
Continue ReadingMaximum Product Subarray Given an integer array nums, find the contiguous subarray within an array(containing at least one number) which has the largest product. Example 1: Input: [2,3,-2,4]…
Continue ReadingProblem: Partition Equal Subset Sum Given a non-empty array nums containing only positive integers, find if the array can be partitioned into two subsets such that the sum of elements in both subs…
Continue ReadingWord Break: Problem Given a string s and a dictionary of strings wordDict, return true if s can be segmented into a space-seperated sequence of one or more dictionary words. Note that the sa…
Continue ReadingRegular Expression Matching Given an input string(s) and a pattern (p), implement regular expression matching with support for '.' and …
Read MoreEdit Distance Given two strings, word1, and word2, return the minimum number of operations required to convert word1 to word2. …
Read MoreTarget Sum You are given an integer array nums and an integer target. You want to build an expression out of nums by adding one of the symbols …
Read MoreUnique Paths A robot is located at the top-left corner of a m*n grid(marked 'Start' in the diagram below). The robot can only move eith…
Read MoreMaximum Product Subarray Given an integer array nums, find the contiguous subarray within an array(containing at least one number) which has the l…
Read MoreProblem: Partition Equal Subset Sum Given a non-empty array nums containing only positive integers, find if the array can be partitioned into two …
Read MoreWord Break: Problem Given a string s and a dictionary of strings wordDict, return true if s can be segmented into a space-seperated sequence of…
Read More