原題鏈接在這里:https://leetcode.com/problems/missing-element-in-sorted-array/ 題目: Given a sorted array A ...
原題鏈接在這里:https://leetcode.com/problems/missing-element-in-sorted-array/ 題目: Given a sorted array A ...
題目: An image is represented by a binary matrix with 0 as a white pixel and 1 as a black pixel. The ...
Given an integer array arr, remove a subarray (can be empty) from arr such that the remaining elemen ...
You are given a string containing only 4 kinds of characters 'Q', 'W', 'E' and 'R'. A string is sai ...
原題鏈接在這里:https://leetcode.com/problems/minimize-max-distance-to-gas-station/description/ 題目: On a h ...
如題,谷歌兩輪背靠背電面。兩輪都是廢話不多說直奔coding,雖然第一輪的中國大哥還是花了一點點時間了解了一下我的背景、畢業時間、research方向。說好的research面呢? 中國大哥出的題: ...
Binary Search基礎 應用於已排序的數據查找其中特定值,是折半查找最常的應用場景。相比線性查找(Linear Search),其時間復雜度減少到O(lgn)。算法基本框架如下: ...
原題鏈接在這里:https://leetcode.com/problems/koko-eating-bananas/ 題目: Koko loves to eat bananas. There a ...
題目: Given a binary search tree (BST), find the lowest common ancestor (LCA) of two given nodes in t ...
In universe Earth C-137, Rick discovered a special form of magnetic force between two balls if they ...