程序媛詹妮弗
终身学习
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 30 下一页
摘要: Reverse a linked list from position m to n. Do it in one-pass. Note: 1 ≤ m ≤ n ≤ length of list. Example: 题意: 给定一个链表,反转第m~n个节点。 反转链表的一般思路 Solution1: 1 阅读全文
posted @ 2019-04-19 14:12 程序媛詹妮弗 阅读(133) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, return the inorder traversal of its nodes' values. Example: Follow up: Recursive solution is trivial, could you do it iteratively 阅读全文
posted @ 2019-04-19 03:04 程序媛詹妮弗 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 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 程序媛詹妮弗 阅读(119) 评论(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 程序媛詹妮弗 阅读(111) 评论(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) 编辑
摘要: Write a program to solve a Sudoku puzzle by filling the empty cells. A sudoku solution must satisfy all of the following rules: Empty cells are indica 阅读全文
posted @ 2019-04-17 03:23 程序媛詹妮弗 阅读(178) 评论(0) 推荐(0) 编辑
摘要: You are given a string, s, and a list of words, words, that are all of the same length. Find all starting indices of substring(s) in s that is a conca 阅读全文
posted @ 2019-04-16 16:24 程序媛詹妮弗 阅读(128) 评论(0) 推荐(0) 编辑
摘要: Given two integers dividend and divisor, divide two integers without using multiplication, division and mod operator. Return the quotient after dividi 阅读全文
posted @ 2019-04-15 05:56 程序媛詹妮弗 阅读(225) 评论(0) 推荐(0) 编辑
摘要: Given two non-negative integers num1 and num2 represented as strings, return the product of num1 and num2, also represented as a string. Example 1: Ex 阅读全文
posted @ 2019-04-15 03:09 程序媛詹妮弗 阅读(151) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 30 下一页