上一页 1 2 3 4 5 6 ··· 14 下一页
摘要: Given a string representing an expression of fraction addition and subtraction, you need to return the calculation result in string format. The final 阅读全文
posted @ 2019-02-07 00:37 yuxihong 阅读(103) 评论(0) 推荐(0) 编辑
摘要: We have an array A of non-negative integers. For every (contiguous) subarray B = [A[i], A[i+1], ..., A[j]] (with i <= j), we take the bitwise OR of al 阅读全文
posted @ 2019-02-05 13:48 yuxihong 阅读(171) 评论(0) 推荐(0) 编辑
摘要: Given two integers A and B, return any string S such that: S has length A + B and contains exactly A 'a' letters, and exactly B 'b' letters; The subst 阅读全文
posted @ 2019-02-05 12:27 yuxihong 阅读(149) 评论(0) 推荐(0) 编辑
摘要: We are given an array A of N lowercase letter strings, all of the same length. Now, we may choose any set of deletion indices, and for each string, we 阅读全文
posted @ 2019-02-04 17:31 yuxihong 阅读(240) 评论(0) 推荐(0) 编辑
摘要: Create a timebased key-value store class TimeMap, that supports two operations. 1. set(string key, string value, int timestamp) Stores the key and val 阅读全文
posted @ 2019-02-04 15:18 yuxihong 阅读(369) 评论(0) 推荐(0) 编辑
摘要: In a country popular for train travel, you have planned some train travelling one year in advance. The days of the year that you will travel is given 阅读全文
posted @ 2019-02-04 03:04 yuxihong 阅读(124) 评论(0) 推荐(0) 编辑
摘要: Given two lists of closed intervals, each list of intervals is pairwise disjoint and in sorted order. Return the intersection of these two interval li 阅读全文
posted @ 2019-02-03 15:17 yuxihong 阅读(228) 评论(0) 推荐(0) 编辑
摘要: Given the root of a binary tree, each node has a value from 0 to 25 representing the letters 'a' to 'z': a value of 0 represents 'a', a value of 1repr 阅读全文
posted @ 2019-02-03 13:10 yuxihong 阅读(252) 评论(0) 推荐(0) 编辑
摘要: We have an array A of integers, and an array queries of queries. For the i-th query val = queries[i][0], index = queries[i][1], we add val to A[index] 阅读全文
posted @ 2019-02-03 12:42 yuxihong 阅读(105) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, return the vertical order traversal of its nodes values. For each node at position (X, Y), its left and right children respective 阅读全文
posted @ 2019-02-03 12:22 yuxihong 阅读(152) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 14 下一页