From 0ec6ab1e6c4fadb073080e80689d59f2162b9321 Mon Sep 17 00:00:00 2001
From: whaifree <49432110+whaibetter@users.noreply.github.com>
Date: Thu, 11 Apr 2024 13:08:32 +0800
Subject: [PATCH] Update files and add new classes LeetCode496, LeetCode503,
and others, with related tests and solutions.
---
pom.xml | 47 +++++++-
.../leetCode/LeetCode/LeetCode496.java | 113 ++++++++++++++++++
.../leetCode/LeetCode/LeetCode503.java | 10 ++
3 files changed, 167 insertions(+), 3 deletions(-)
create mode 100644 src/main/java/cn/whaifree/leetCode/LeetCode/LeetCode496.java
create mode 100644 src/main/java/cn/whaifree/leetCode/LeetCode/LeetCode503.java
diff --git a/pom.xml b/pom.xml
index 70b765a..c53e654 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,9 +4,10 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0
- org.example
- LeetCode
- 1.0-SNAPSHOT
+ org.example
+ LeetCode
+ 1.0-SNAPSHOT
+ jar
UTF-8
17
@@ -36,4 +37,44 @@
+
+
+
+
+ org.apache.maven.plugins
+ maven-javadoc-plugin
+ 2.10.4
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+
+
+
+ org.apache.maven.plugins
+ maven-resources-plugin
+ 2.6
+
+
+
+ copy-resources
+ validate
+
+ copy-resources
+
+
+ ${project.build.directory}/classes/
+
+
+ src/main/resources
+ true
+
+
+
+
+
+
+
+
+
diff --git a/src/main/java/cn/whaifree/leetCode/LeetCode/LeetCode496.java b/src/main/java/cn/whaifree/leetCode/LeetCode/LeetCode496.java
new file mode 100644
index 0000000..a9348c6
--- /dev/null
+++ b/src/main/java/cn/whaifree/leetCode/LeetCode/LeetCode496.java
@@ -0,0 +1,113 @@
+package cn.whaifree.leetCode.LeetCode;
+
+import org.junit.Test;
+
+import java.util.Arrays;
+import java.util.Deque;
+import java.util.HashMap;
+import java.util.LinkedList;
+import java.util.concurrent.ConcurrentHashMap;
+
+/**
+ * @version 1.0
+ * @Author whai文海
+ * @Date 2024/4/9 10:50
+ * @注释
+ */
+public class LeetCode496 {
+
+ @Test
+ public void test() {
+
+ ConcurrentHashMap