
給你一個鏈表,每 k 個節點一組進行翻轉,請你返回翻轉后的鏈表。 k 是一個正整數,它的值小于或等于鏈表的長度。 如果節點總數不是 k 的整數倍...
給定 n 個非負整數,用來表示柱狀圖中各個柱子的高度。每個柱子彼此相鄰,且寬度為 1 。求在該柱狀圖中,能夠勾勒出來的矩形的最大面積。 以上是柱...
Given n non-negative integers a1, a2, ..., an , where each represents a ...
LR LR是線性分類模型,要求輸入線性獨立特征。 GBDT GBDT是一種迭代的決策樹算法,它由多棵決策樹組成,所有樹累加起來作為最終答案。優點...
N-way K-shot N-way:表示有N個類別K-shot:每一個類別中,有K個樣本對于一個task,可以表示為{(s1,y),(s2,y...
Given an array nums, there is a sliding window of size k which is moving...
Sort a linked list in O(n log n) time using constant space complexity.Ex...
Given a m x n grid filled with non-negative numbers, find a path from to...
Suppose an array sorted in ascending order is rotated at some pivot unkn...