mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-06 09:06:51 +08:00
Refactor Code Style (#4151)
This commit is contained in:
@ -134,7 +134,7 @@ public class RegexMatching {
|
||||
// Method 4: Bottom-Up DP(Tabulation)
|
||||
// Time Complexity=0(N*M) Space Complexity=0(N*M)
|
||||
static boolean regexBU(String src, String pat) {
|
||||
boolean strg[][] = new boolean[src.length() + 1][pat.length() + 1];
|
||||
boolean[][] strg = new boolean[src.length() + 1][pat.length() + 1];
|
||||
strg[src.length()][pat.length()] = true;
|
||||
for (int row = src.length(); row >= 0; row--) {
|
||||
for (int col = pat.length() - 1; col >= 0; col--) {
|
||||
|
Reference in New Issue
Block a user