From 79174512dc872d9170d8e2a10f1065ebfae795ff Mon Sep 17 00:00:00 2001 From: yanglbme Date: Sun, 7 Apr 2024 11:11:04 +0800 Subject: [PATCH] fix: cpp code --- .../1460.Make Two Arrays Equal by Reversing Subarrays/README.md | 2 +- .../README_EN.md | 2 +- .../Solution2.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/solution/1400-1499/1460.Make Two Arrays Equal by Reversing Subarrays/README.md b/solution/1400-1499/1460.Make Two Arrays Equal by Reversing Subarrays/README.md index 7000a62f45484..c58b58e2a7f52 100644 --- a/solution/1400-1499/1460.Make Two Arrays Equal by Reversing Subarrays/README.md +++ b/solution/1400-1499/1460.Make Two Arrays Equal by Reversing Subarrays/README.md @@ -193,7 +193,7 @@ public: for (int& v : target) { ++cnt1[v]; } - for (int& v: arr) { + for (int& v : arr) { ++cnt2[v]; } return cnt1 == cnt2; diff --git a/solution/1400-1499/1460.Make Two Arrays Equal by Reversing Subarrays/README_EN.md b/solution/1400-1499/1460.Make Two Arrays Equal by Reversing Subarrays/README_EN.md index 4195e66959e20..02375f901aa15 100644 --- a/solution/1400-1499/1460.Make Two Arrays Equal by Reversing Subarrays/README_EN.md +++ b/solution/1400-1499/1460.Make Two Arrays Equal by Reversing Subarrays/README_EN.md @@ -189,7 +189,7 @@ public: for (int& v : target) { ++cnt1[v]; } - for (int& v: arr) { + for (int& v : arr) { ++cnt2[v]; } return cnt1 == cnt2; diff --git a/solution/1400-1499/1460.Make Two Arrays Equal by Reversing Subarrays/Solution2.cpp b/solution/1400-1499/1460.Make Two Arrays Equal by Reversing Subarrays/Solution2.cpp index 780d4e1bfc615..0793c7670bd85 100644 --- a/solution/1400-1499/1460.Make Two Arrays Equal by Reversing Subarrays/Solution2.cpp +++ b/solution/1400-1499/1460.Make Two Arrays Equal by Reversing Subarrays/Solution2.cpp @@ -6,7 +6,7 @@ class Solution { for (int& v : target) { ++cnt1[v]; } - for (int& v: arr) { + for (int& v : arr) { ++cnt2[v]; } return cnt1 == cnt2;