Skip to content

Commit 031c40d

Browse files
refactor 645
1 parent c56da1a commit 031c40d

File tree

1 file changed

+0
-20
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+0
-20
lines changed

src/main/java/com/fishercoder/solutions/_645.java

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,6 @@
22

33
import java.util.Arrays;
44

5-
/**
6-
* 645. Set Mismatch
7-
*
8-
* The set S originally contains numbers from 1 to n.
9-
* But unfortunately, due to the data error, one of the numbers in
10-
* the set got duplicated to another number in the set,
11-
* which results in repetition of one number and loss of another number.
12-
13-
Given an array nums representing the data status of this set after the error.
14-
Your task is to firstly find the number occurs twice and then find the number
15-
that is missing. Return them in the form of an array.
16-
17-
Example 1:
18-
Input: nums = [1,2,2,4]
19-
Output: [2,3]
20-
21-
Note:
22-
The given array size will in the range [2, 10000].
23-
The given array's numbers won't have any order.
24-
*/
255
public class _645 {
266
public static class Solution1 {
277
public int[] findErrorNums(int[] nums) {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy