Skip to content

Commit 459e79e

Browse files
Update 24551- Odd-String-Difference.md
1 parent d7ad078 commit 459e79e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dsa-solutions/lc-solutions/2400-2499/24551- Odd-String-Difference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ description: Problem solution of Odd String Difference Problem
1212

1313
You are given an array of equal-length strings words. Assume that the length of each string is n.
1414

15-
Each string words[i] can be converted into a difference integer array difference[i] of length n - 1 where difference[i][j] = words[i][j+1] - words[i][j] where 0 <= j <= n - 2. Note that the difference between two letters is the difference between their positions in the alphabet i.e. the position of 'a' is 0, 'b' is 1, and 'z' is 25.
15+
Each string words[i] can be converted into a difference integer array difference[i] of length n - 1 where difference[i][j] = words[i][j+1] - words[i][j] where 0 &lt;= j &lt;= n - 2. Note that the difference between two letters is the difference between their positions in the alphabet i.e. the position of 'a' is 0, 'b' is 1, and 'z' is 25.
1616

1717
For example, for the string "acb", the difference integer array is [2 - 0, 1 - 2] = [2, -1].
1818
All the strings in words have the same difference integer array, except one. You should find that string.

0 commit comments

Comments
 (0)