2017年9月5日

LeetCode: 283 Move Zeroes(easy)

摘要: 题目: Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements. For example, 阅读全文

posted @ 2017-09-05 21:54 玲珑子 阅读(135) 评论(0) 推荐(0) 编辑

LeetCode: 389 Find the Difference(easy)

摘要: 题目: Given two strings s and t which consist of only lowercase letters. String t is generated by random shuffling string s and then add one more letter 阅读全文

posted @ 2017-09-05 11:14 玲珑子 阅读(135) 评论(0) 推荐(0) 编辑

LeetCode: 669 Trim a Binary Search Tree(easy)

摘要: 题目: Given a binary search tree and the lowest and highest boundaries as L and R, trim the tree so that all its elements lies in [L, R] (R >= L). You m 阅读全文

posted @ 2017-09-05 10:57 玲珑子 阅读(187) 评论(0) 推荐(0) 编辑

导航