From 351591b4f8690e19ee3bc489fb134cf3a07aa167 Mon Sep 17 00:00:00 2001 From: "Duc M. Quoc" Date: Thu, 30 Jan 2025 00:56:11 +0700 Subject: [PATCH] Update 3431.java fix typo --- solutions/3431. Minimum Unlocked Indices to Sort Nums/3431.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solutions/3431. Minimum Unlocked Indices to Sort Nums/3431.java b/solutions/3431. Minimum Unlocked Indices to Sort Nums/3431.java index 489b808ef2c..85a8d0fb017 100644 --- a/solutions/3431. Minimum Unlocked Indices to Sort Nums/3431.java +++ b/solutions/3431. Minimum Unlocked Indices to Sort Nums/3431.java @@ -19,7 +19,7 @@ public int minUnlockedIndices(int[] nums, int[] locked) { if (first3 != -1 && last2 != -1) for (int i = first3; i < last2; i++) if (locked[i] == 1) - +ans; + ++ans; return ans; }