程序媛詹妮弗
终身学习
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 30 下一页
摘要: Given a singly linked list L: L0→L1→…→Ln-1→Ln,reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→… You may not modify the values in the list's nodes, only nodes its 阅读全文
posted @ 2018-10-18 07:21 程序媛詹妮弗 阅读(116) 评论(0) 推荐(0) 编辑
摘要: Convert a BST to a sorted circular doubly-linked list in-place. Think of the left and right pointers as synonymous to the previous and next pointers i 阅读全文
posted @ 2018-10-18 06:40 程序媛詹妮弗 阅读(120) 评论(0) 推荐(0) 编辑
摘要: Given a positive integer n, generate a square matrix filled with elements from 1 to n^2 in spiral order. Example: 题意: 给定n, 把1至n ^ 2所有的数,按照螺旋顺序填入方阵。 co 阅读全文
posted @ 2018-10-18 06:28 程序媛詹妮弗 阅读(134) 评论(0) 推荐(0) 编辑
摘要: The API: int read4(char *buf) reads 4 characters at a time from a file. The return value is the actual number of characters read. For example, it retu 阅读全文
posted @ 2018-10-18 06:25 程序媛詹妮弗 阅读(120) 评论(0) 推荐(0) 编辑
摘要: Serialization is the process of converting a data structure or object into a sequence of bits so that it can be stored in a file or memory buffer, or 阅读全文
posted @ 2018-10-18 06:22 程序媛詹妮弗 阅读(120) 评论(0) 推荐(0) 编辑
摘要: Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers. If such arrangement is not possib 阅读全文
posted @ 2018-10-18 06:16 程序媛詹妮弗 阅读(146) 评论(0) 推荐(0) 编辑
摘要: Given two binary strings, return their sum (also a binary string). The input strings are both non-empty and contains only characters 1 or 0. Example 1 阅读全文
posted @ 2018-10-18 05:26 程序媛詹妮弗 阅读(189) 评论(0) 推荐(0) 编辑
摘要: Say you have an array for which the ith element is the price of a given stock on day i. If you were only permitted to complete at most one transaction 阅读全文
posted @ 2018-10-18 05:24 程序媛詹妮弗 阅读(136) 评论(0) 推荐(0) 编辑
摘要: Given a char array representing tasks CPU need to do. It contains capital letters A to Z where different letters represent different tasks.Tasks could 阅读全文
posted @ 2018-10-18 05:22 程序媛詹妮弗 阅读(326) 评论(0) 推荐(0) 编辑
摘要: Given an array of meeting time intervals consisting of start and end times [[s1,e1],[s2,e2],...] (si < ei), find the minimum number of conference room 阅读全文
posted @ 2018-10-18 05:20 程序媛詹妮弗 阅读(272) 评论(0) 推荐(0) 编辑
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 30 下一页