TongTong Shi's Blog
A Playground to Share My Knowledge
Convert to Base -2 Convert to Base -2
LeetCode Q 1017 - Convert to Base -2Given a number N, return a string consisting of “0”s and “1”s that represents its va
2019-06-25 Tong Shi
Adding Two Negabinary Numbers Adding Two Negabinary Numbers
LeetCode Q 1073 - Adding Two Negabinary NumbersGiven two numbers arr1 and arr2 in base -2, return the result of adding t
2019-06-25 Tong Shi
Find in Mountain Array Find in Mountain Array
LintCode Q 1095 - Peak Index in a Mountain Array(This problem is an interactive problem.)You may recall that an array A
2019-06-24 Tong Shi
Peak Index in a Mountain Array Peak Index in a Mountain Array
LintCode Q 852 - Peak Index in a Mountain ArrayLet’s call an array A a mountain if the following properties hold: A.len
2019-06-24 Tong Shi
Car Pooling Car Pooling
LintCode Q 1094 - Car PoolingYou are driving a vehicle that has capacity empty seats initially available for passengers.
2019-06-24 Tong Shi
Statistics from a Large Sample Statistics from a Large Sample
LintCode Q 1093 - Statistics from a Large SampleWe sampled integers between 0 and 255, and stored the results in an arra
2019-06-24 Tong Shi
20 / 79