leetcode练习题
再见_旧时光
做自己喜欢的事,成功的几率会大很多,如果做自己不喜欢的事并且成功的话,这才是一件了不起的事情。
展开
-
leetcode--[编程题]same-tree
题目描述:Given two binary trees, write a function to check if they are equal or not. Two binary trees are considered equal if they are structurally identical and the nodes have the same value. ...原创 2018-06-30 21:35:55 · 262 阅读 · 0 评论 -
LeetCode——remove-duplicates-from-sorted-array(从排序数组中删除重复项)
1.题目描述 Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate extra space for another array, you must do this in plac...原创 2018-07-20 11:24:03 · 671 阅读 · 3 评论 -
LeetCode——remove-element(移除数组中指定元素)
1.题目描述 Given an array and a value, remove all instances of that value in place and return the new length. The order of elements can be changed. It doesn’t matter what you leave beyond the new length...原创 2018-07-20 12:32:32 · 909 阅读 · 0 评论