LeetCode: 328-Odd Even Linked List 解題紀錄
Last Updated on 2022-12-06 by Clay
題目
Given the head
of a singly linked list, group all the nodes with odd indices together followed by the nodes with even indices, and return the reordered list.
Last Updated on 2022-12-06 by Clay
Given the head
of a singly linked list, group all the nodes with odd indices together followed by the nodes with even indices, and return the reordered list.
Last Updated on 2022-12-05 by Clay
Given the head
of a singly linked list, return the middle node of the linked list.
If there are two middle nodes, return the second middle node.
Read More »LeetCode: 876-Middle of the Linked List 解題紀錄Last Updated on 2022-12-05 by Clay
You are given a 0-indexed integer array nums
of length n
.
The average difference of the index i
is the absolute difference between the average of the first i + 1
elements of nums
and the average of the last n - i - 1
elements. Both averages should be rounded down to the nearest integer.
Last Updated on 2022-12-03 by Clay
Given a string s
, sort it in decreasing order based on the frequency of the characters. The frequency of a character is the number of times it appears in the string.
Last Updated on 2024-07-25 by Clay
在正式開始撰寫、設計量子電腦的程式之前,我們有必要在 Python 中安裝 Qiskit 套件,因為 Qiskit 是基於 Python3.7 以後的版本進行開發的。
Read More »[Qiskit] 安裝筆記 – Installation