TongTong Shi's Blog
A Playground to Share My Knowledge
Maximize Sum Of Array After K Negations Maximize Sum Of Array After K Negations
LeetCode Q 1005 - Maximize Sum Of Array After K NegationsGiven an array A of integers, we must modify the array in the
2019-05-27 Tong Shi
Two City Scheduling Two City Scheduling
LeetCode Q 1029 - Two City SchedulingThere are 2N people a company is planning to interview. The cost of flying the i-t
2019-05-27 Tong Shi
Last Stone Weight Last Stone Weight
LeetCode Q 1046 - Last Stone WeightWe have a collection of rocks, each rock has a positive integer weight. Each turn, we
2019-05-27 Tong Shi
Previous Permutation With One Swap Previous Permutation With One Swap
LeetCode Q 1053 - Previous Permutation With One SwapGiven an array A of positive integers (not necessarily distinct), re
2019-05-27 Tong Shi
Meeting Rooms II Meeting Rooms II
LintCode Q 921 - Meeting Rooms IIGiven an array of meeting time intervals consisting of start and end times [[s1,e1],[s2
2019-05-25 Tong Shi
Meeting Rooms Meeting Rooms
LintCode Q 920 - Meeting RoomsGiven an array of meeting time intervals consisting of start and end times [[s1,e1],[s2,e2
2019-05-25 Tong Shi
32 / 79