Skip to content

Commit

Permalink
🧑‍💻 shortens digit dp implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
iagorrr committed Jan 14, 2024
1 parent 12ebba7 commit 86254cc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ll call(int pos = 0, int prev = 0, bool lim = true,
ll &ans = DP[pos][prev][lim][only0];

if (ans != -1) {
return DP[pos][prev][lim][only0];
return ans;
}

ans = 0;
Expand Down

0 comments on commit 86254cc

Please sign in to comment.