上一页 1 ··· 33 34 35 36 37 38 39 40 41 ··· 77 下一页
摘要: [抄题]: Imagine you have a special keyboard with the following keys: Key 1: (A): Print one 'A' on screen. Key 2: (Ctrl-A): Select the whole screen. Key 阅读全文
posted @ 2018-08-24 06:26 苗妙苗 阅读(240) 评论(0) 推荐(0)
摘要: [抄题]: You are given two integer arrays nums1 and nums2 sorted in ascending order and an integer k. Define a pair (u,v) which consists of one element f 阅读全文
posted @ 2018-08-24 04:31 苗妙苗 阅读(158) 评论(0) 推荐(0)
摘要: [抄题]: In English, we have a concept called root, which can be followed by some other words to form another longer word - let's call this word successo 阅读全文
posted @ 2018-08-24 02:37 苗妙苗 阅读(281) 评论(0) 推荐(0)
摘要: [抄题]: Given inorder and postorder traversal of a tree, construct the binary tree. Note:You may assume that duplicates do not exist in the tree. For ex 阅读全文
posted @ 2018-08-23 22:40 苗妙苗 阅读(191) 评论(0) 推荐(0)
摘要: [抄题]: 简而言之:只能对 杯子中全部的水/容量-杯子中全部的水进行操作 You are given two jugs with capacities x and y litres. There is an infinite amount of water supply available. Yo 阅读全文
posted @ 2018-08-23 10:40 苗妙苗 阅读(281) 评论(0) 推荐(0)
摘要: [抄题]: There are a number of spherical balloons spread in two-dimensional space. For each balloon, provided input is the start and end coordinates of t 阅读全文
posted @ 2018-08-23 09:04 苗妙苗 阅读(162) 评论(0) 推荐(0)
摘要: [抄题]: Initially on a notepad only one character 'A' is present. You can perform two operations on this notepad for each step: Given a number n. You ha 阅读全文
posted @ 2018-08-23 05:42 苗妙苗 阅读(136) 评论(0) 推荐(0)
摘要: [抄题]: Given a string, we can "shift" each of its letter to its successive letter, for example: "abc" -> "bcd". We can keep "shifting" which forms the 阅读全文
posted @ 2018-08-23 04:39 苗妙苗 阅读(254) 评论(0) 推荐(0)
摘要: [抄题]: Given a root node reference of a BST and a key, delete the node with the given key in the BST. Return the root node reference (possibly updated) 阅读全文
posted @ 2018-08-22 22:11 苗妙苗 阅读(387) 评论(0) 推荐(0)
摘要: [抄题]: Given an array w of positive integers, where w[i] describes the weight of index i, write a function pickIndex which randomly picks an index in p 阅读全文
posted @ 2018-08-22 21:17 苗妙苗 阅读(664) 评论(0) 推荐(0)
上一页 1 ··· 33 34 35 36 37 38 39 40 41 ··· 77 下一页