上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 28 下一页
摘要: 题目: The count-and-say sequence is the sequence of integers with the first five terms as following: count-and-say序列是整数序列,前五个术语如下: 1 is read off as "one 阅读全文
posted @ 2018-09-04 11:03 chan_ai_chao 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 题目: In a row of seats, 1 represents a person sitting in that seat, and 0 represents that the seat is empty. 在一排座位中,1表示坐在该座位上的人,0表示座位是空的。 There is at l 阅读全文
posted @ 2018-09-03 19:49 chan_ai_chao 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a binary search tree (BST) with duplicates, find all the mode(s) (the most frequently occurred element) in the given BST. 给定具有重复项的二叉搜索树(BST) 阅读全文
posted @ 2018-09-03 16:38 chan_ai_chao 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 题目: Given an array consisting of n integers, find the contiguous subarray of given length k that has the maximum average value. And you need to output 阅读全文
posted @ 2018-09-03 14:51 chan_ai_chao 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 题目: Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward. 确定整数是否是回文。 当它向前读取向后时,整数是回文。 E 阅读全文
posted @ 2018-08-31 16:11 chan_ai_chao 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a non-empty string check if it can be constructed by taking a substring of it and appending multiple copies of the substring together. You m 阅读全文
posted @ 2018-08-31 14:34 chan_ai_chao 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 题目: Given an array of integers, return indices of the two numbers such that they add up to a specific target. 给定一个整数数组,返回两个数字的索引,使它们相加到特定目标。 You may a 阅读全文
posted @ 2018-08-31 11:01 chan_ai_chao 阅读(94) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a binary tree, determine if it is height-balanced. 给定二叉树,确定它是否是高度平衡的。 For this problem, a height-balanced binary tree is defined as: 对于此问题,高 阅读全文
posted @ 2018-08-31 10:15 chan_ai_chao 阅读(95) 评论(0) 推荐(0) 编辑
摘要: 题目: Implement the following operations of a queue using stacks. 使用堆栈实现队列的以下操作。 push(x) -- Push element x to the back of queue. 将元素x推送到队列的后面。 pop() -- 阅读全文
posted @ 2018-08-30 17:12 chan_ai_chao 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 1.数据结构分类 (1)线性结构 数组,栈,队列,链表,哈希表 (2)树结构 二叉树,二分搜索树,AVL,红黑树,Treap,Splay,堆,Trie,线段树,K-D树,并查集,哈夫曼树 (3)图结构 邻接矩阵,邻接表 2.数据结构应用 (1)数据库 树结构:AVL,红黑树,Treap,伸展树,B树 阅读全文
posted @ 2018-08-14 10:13 chan_ai_chao 阅读(150) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 28 下一页