提交 1d5c0c03 编写于 作者: 檀越@新空间's avatar 檀越@新空间 🐭

fix:整理

上级 aacc7828
...@@ -16,7 +16,7 @@ user_env = [] ...@@ -16,7 +16,7 @@ user_env = []
[UI] [UI]
# Name of the app and chatbot. # Name of the app and chatbot.
name = "Chatbot" name = "丽影"
# Description of the app and chatbot. This is used for HTML tags. # Description of the app and chatbot. This is used for HTML tags.
# description = "" # description = ""
...@@ -28,7 +28,9 @@ default_expand_messages = false ...@@ -28,7 +28,9 @@ default_expand_messages = false
hide_cot = false hide_cot = false
# Link to your github repo. This will add a github button in the UI's header. # Link to your github repo. This will add a github button in the UI's header.
# github = "" github = "http://qinyingjie.top/"
[meta] [meta]
generated_by = "0.4.1" generated_by = "0.4.1"
id = "笑笑-8C3Mh6py4EOT"
\ No newline at end of file
# Welcome to 丽影洞察! 🚀🤖 # Welcome to 丽影洞察! 🚀🤖
\ No newline at end of file
Hi there, Developer! 👋 We're excited to have you on board. Chainlit is a powerful tool designed to help you prototype, debug and share applications built on top of LLMs.
## Useful Links 🔗
- **Documentation:** Get started with our comprehensive [Chainlit Documentation](https://docs.chainlit.io) 📚
- **Discord Community:** Join our friendly [Chainlit Discord](https://discord.gg/ZThrUxbAYw) to ask questions, share your projects, and connect with other developers! 💬
We can't wait to see what you create with Chainlit! Happy coding! 💻😊
## Welcome screen
To modify the welcome screen, edit the `chainlit.md` file at the root of your project. If you do not want a welcome screen, just leave this file empty.
此差异已折叠。
"""
两个数组的交集 II
"""
from typing import List
class Solution:
def intersect(self, nums1: List[int], nums2: List[int]) -> List[int]:
dict1 = {}
# 统计nums1中的各个数字个数
for i in nums1:
if i in dict1:
dict1[i] += 1
else:
dict1[i] = 1
res = []
for num in nums2:
if num in dict1 and dict1[num] > 0:
res.append(num)
dict1[num] -= 1
return res
if __name__ == '__main__':
result = Solution().intersect([1, 2, 2, 1], [2, 2])
print(result)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册