上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 46 下一页
  2017年8月4日
摘要: Find the nth digit of the infinite integer sequence 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, ... Note:n is positive and will fit within the range of a 32-bi 阅读全文
posted @ 2017-08-04 22:51 Beserious 阅读(163) 评论(0) 推荐(0) 编辑
  2017年8月3日
摘要: Given an array of n positive integers and a positive integer s, find the minimal length of a contiguous subarray of which the sum ≥ s. If there isn't 阅读全文
posted @ 2017-08-03 18:35 Beserious 阅读(143) 评论(0) 推荐(0) 编辑
  2017年8月1日
摘要: 1. 安装nodejs: sudo apt-get install nodejs-legacy 2.安装nvm : wget -qO- https://raw.github.com/creationix/nvm/master/install.sh | sh 3.nvm安装完成后,重启终端并执行下列命 阅读全文
posted @ 2017-08-01 12:43 Beserious 阅读(571) 评论(0) 推荐(0) 编辑
  2017年7月31日
摘要: Given a binary tree, return the zigzag level order traversal of its nodes' values. (ie, from left to right, then right to left for the next level and 阅读全文
posted @ 2017-07-31 15:04 Beserious 阅读(122) 评论(0) 推荐(0) 编辑
  2017年7月30日
摘要: Invert a binary tree. to . 阅读全文
posted @ 2017-07-30 20:26 Beserious 阅读(125) 评论(0) 推荐(0) 编辑
摘要: Given a word, you need to judge whether the usage of capitals in it is right or not. We define the usage of capitals in a word to be right when one of 阅读全文
posted @ 2017-07-30 19:59 Beserious 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 时间限制:10000ms 单点时限:1000ms 内存限制:256MB 时间限制:10000ms 单点时限:1000ms 内存限制:256MB 描述 给定一棵包含 N 个节点的无根树,小Hi想知道如果指定其中某个节点 K 为根,那么每个节点的父节点是谁? 输入 第一行包含一个整数 N 和 K。1 ≤ 阅读全文
posted @ 2017-07-30 17:25 Beserious 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 时间限制:10000ms 单点时限:1000ms 内存限制:256MB 时间限制:10000ms 单点时限:1000ms 内存限制:256MB 描述 每一个正整数 N 都能表示成若干个连续正整数的和,例如10可以表示成1+2+3+4,15可以表示成4+5+6,8可以表示成8本身。我们称这种表示方法为 阅读全文
posted @ 2017-07-30 17:24 Beserious 阅读(501) 评论(0) 推荐(0) 编辑
  2017年7月29日
摘要: Given a non-empty array of integers, return the third maximum number in this array. If it does not exist, return the maximum number. The time complexi 阅读全文
posted @ 2017-07-29 19:00 Beserious 阅读(137) 评论(0) 推荐(0) 编辑
摘要: Given an array of integers and an integer k, you need to find the number of unique k-diff pairs in the array. Here a k-diff pair is defined as an inte 阅读全文
posted @ 2017-07-29 15:30 Beserious 阅读(171) 评论(0) 推荐(0) 编辑
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 46 下一页