Skip to content

Commit 6833bcc

Browse files
committed
Merge remote-tracking branch 'origin/added_java_soln_for_2501_Longest_Square_Streak_in_an_Array' into added_java_soln_for_2501_Longest_Square_Streak_in_an_Array
2 parents dab4d71 + 8daab42 commit 6833bcc

File tree

1 file changed

+2
-2
lines changed
  • solution/2500-2599/2501.Longest Square Streak in an Array

1 file changed

+2
-2
lines changed

solution/2500-2599/2501.Longest Square Streak in an Array/README_EN.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,8 +308,8 @@ is $\max(\textit{dfs}(x))$, where $x$ is an element in the array $\textit{nums}$
308308

309309
The calculation process of the function $\textit{dfs}(x)$ is as follows:
310310

311-
- If $x$ is not in the hash table, return $0$.
312-
- Otherwise, return $1 + \textit{dfs}(x^2)$.
311+
- If $x$ is not in the hash table, return $0$.
312+
- Otherwise, return $1 + \textit{dfs}(x^2)$.
313313

314314
During the process, we can use memoization, i.e., use a hash table to record the value of the function $\textit{dfs}(x)$
315315
to avoid redundant calculations.

0 commit comments

Comments
 (0)