---
# System prepended metadata

title: 2023/05/21(日) 每週 LeetCode 刷題
tags: [AC LeetCode 刷題讀書會 - 2023]

---

---
tags: AC LeetCode 刷題讀書會 - 2023
---

#  2023/05/21(日) 每週 LeetCode 刷題

## 刷題題號
-  [561. Array Partition](https://leetcode.com/problems/array-partition/)

## 解題思路
Given an integer array nums of 2n integers, group these integers into n pairs (a1, b1), (a2, b2), ..., (an, bn) such that the sum of min(ai, bi) for all i is maximized. Return the maximized sum.
<pre style='background-color:#ggg'>
給予一個「二的倍數」的整數陣列叫 nums，將這些整數兩兩一組(a1, b1), (a2, b2), ..., (an, bn)，並找出每組中的最小值，得到與回傳最大化的最小值總和。
</pre>


## 回報格式

- 請 Fork 此 Replit 連結(https://replit.com/@AllenLi23/AC-LeetCode-Js-561-Array-Partition/)後，進行程式碼解題，並於完成後更新到 Replit 中，再將連結貼至「解題分享區」來與大家交流做法。


解題分享區
---
2023/05/21 讀書會議流程：

ex. 21:05開始 

#簽到表：
https://docs.google.com/spreadsheets/d/1gc16rrF-yZNs845z_nYrdgDIiSECOJok30dNLyQm69A/edit#gid=0

1. 題目說明。
2. 題目解析(BigO(n log n))。
4. 成員分享解題思路。
5. 問題與討論。


<!-- No.0 (請依序排序下去)
name: name (回報範例)
lighthouse: lighthouse
Replit：https://replit.com/@AllenLi23/AC-LeetCode-Js-561-Array-Partition-Allen
-->

<!-- No.1
name: vanessa
lighthouse: mail7591@hotmail.com
Replit：https://replit.com/@vanessalin3/AC-LeetCode-Js-561-Array-Partition#index.js
-->

<!-- No.2
name: bun
lighthouse: bun.coding@gmail.com
Replit：https://replit.com/@Shu-YinChen/AC-LeetCode-Js-561-Array-Partition#index.js
-->

<!-- No.3
name: 永c
lighthouse: bun.coding@gmail.com
Replit：https://replit.com/@yongsin0129/AC-LeetCode-Js-561-Array-Partition#index.js
-->

<!-- No.4
name: Kusmall
lighthouse: huang.paladin@gmail.com
Replit：https://replit.com/@Kusmall/AC-LeetCode-Js-561-Array-Partition#index.js
-->

<!-- No.5
name: Jack Hung
lighthouse: lhhungx@gmail.com
Replit：https://replit.com/@LungHsuanHung/AC-LeetCode-Go-561-Array-Partition#main_test.go
-->

<!-- No.6
name: Kai
lighthouse: pythonforeye@gmail.com
Replit: https://replit.com/@Beginneraboutli/AC-LeetCode-Js-561-Array-Partition#index.js
-->

<!-- No.7
name: Freya
lighthouse: freyajheng@gmail.com
Replit: https://replit.com/@JhengFreya/AC-LeetCode-Js-561-Array-Partition
-->

<!-- No.8
name: Elliot
lighthouse: elliotcs30@gmail.com
Replit: https://replit.com/@elliotchang3/AC-LeetCode-Js-561-Array-Partition#index.js
-->

<!-- No.9
name: Winnie
lighthouse: yaysa903@gmail.com
Replit: https://replit.com/@WinnieLin7/AC-LeetCode-Js-561-Array-Partition#index.js
-->

