這章節來介紹Heap Sort。
首先把array轉換成max-heap:
再來把max-heap最大的元素放到我們新建的output array:
拿掉後...
github pages:https://rochelwang1205.github.io/sweetie/
github repo:https://githu...
昨天我們完成了 Google Maps 的標記功能,今天我們來做個簡單的小小優化吧
今日重點:
Use Implements
今天要優化的原因不是因為什麼大...
Creating a Linked List
public class ListNode {
int val;
ListNode next;...
138. Copy List with Random Pointer
題目
A linked list of length n is given such th...
原來 QSVT 也可以應用在振幅放大?讓我們一探究竟吧!
令 為初始的量子態,而 是我們感興趣的量子態且 ;我們希望經過 AA 之後,。令
為目標矩陣,也...