LeetCode: 581-Shortest Unsorted Continuous Subarray 解題紀錄
題目
Given an integer array nums
, you need to find one continuous subarray that if you only sort this subarray in ascending order, then the whole array will be sorted in ascending order.
Given an integer array nums
, you need to find one continuous subarray that if you only sort this subarray in ascending order, then the whole array will be sorted in ascending order.
Given an integer array nums
, move all the even integers at the beginning of the array followed by all the odd integers.
Given two strings s
and t
, return true
if they are equal when both are typed into empty text editors. '#'
means a backspace character.
最近當我重新配置工作用環境的 Nvidia GPU 驅動程式時,當我安裝過後重新開機,我卻無法透過 nvidia-smi
指令去取得 GPU 的資訊。唯一得到的訊息是:
T5 ,全名是 Transfer Learning with a Unified Text-to-Text Transformer,在 2019 年底提出、隔年 2020 年則在 GLUE 上成為榜首,成功擠下了自家的 ALBERT。
Read More »[Machine Learning] T5 預訓練模型學習筆記不知道大家是否常常會調整自己的終端機(terminal),好讓終端機看起來更美觀呢?
Read More »[Linux] 使用 xfce 終端機來顯示終端機背景圖片Given the root
of a binary search tree, and an integer k
, return the kth
smallest value (1-indexed) of all the values of the nodes in the tree.
在建立 Python 函式的過程中,有時我們會傳入參數讓建立的函式去處理,或許我們還會設定該參數的預設值,讓參數在我們沒有傳入任何值的情況下,仍能以一個預設(default)值去執行函式。
Read More »[Python] 函式使用可變物件當作參數預設值存在的問題Given the root
of a binary search tree, rearrange the tree in in-order so that the leftmost node in the tree is now the root of the tree, and every node has no left child and only one right child.
Kaggle Notebook 每週都有提供一段不算短的 GPU 加速時間,並在每週六更新。也正因為如此,比起 Google Colab 我更推薦使用 Kaggle Notebook。
Read More »[Machine Learning] 持續在 Kaggle Notebook 上訓練模型(關閉 session 也在遠端訓練)