程序媛詹妮弗
终身学习
摘要: Given two binary trees, write a function to check if they are the same or not. Two binary trees are considered the same if they are structurally ident 阅读全文
posted @ 2019-04-18 18:55 程序媛詹妮弗 阅读(122) 评论(0) 推荐(0) 编辑
摘要: Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order. Example 1: Example 2: 题意: 按螺旋方式遍历矩阵。 Solution 阅读全文
posted @ 2019-04-18 17:55 程序媛詹妮弗 阅读(114) 评论(0) 推荐(0) 编辑
摘要: Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string. If the last word 阅读全文
posted @ 2019-04-18 17:50 程序媛詹妮弗 阅读(116) 评论(0) 推荐(0) 编辑
摘要: Given an unsorted integer array, find the smallest missing positive integer. Example 1: Example 2: Example 3: Note: Your algorithm should run in O(n) 阅读全文
posted @ 2019-04-18 15:50 程序媛詹妮弗 阅读(117) 评论(0) 推荐(0) 编辑