上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 46 下一页
  2017年7月28日
摘要: You are given a map in form of a two-dimensional integer grid where 1 represents land and 0 represents water. Grid cells are connected horizontally/ve 阅读全文
posted @ 2017-07-28 10:19 Beserious 阅读(130) 评论(0) 推荐(0) 编辑
摘要: Given a non-empty binary tree, return the average value of the nodes on each level in the form of an array. Example 1: Note: 阅读全文
posted @ 2017-07-28 10:03 Beserious 阅读(163) 评论(0) 推荐(0) 编辑
摘要: Write a program that outputs the string representation of numbers from 1 to n. But for multiples of three it should output “Fizz” instead of the numbe 阅读全文
posted @ 2017-07-28 09:55 Beserious 阅读(175) 评论(0) 推荐(0) 编辑
摘要: In MATLAB, there is a very useful function called 'reshape', which can reshape a matrix into a new one with different size but keep its original data. 阅读全文
posted @ 2017-07-28 09:42 Beserious 阅读(153) 评论(0) 推荐(0) 编辑
摘要: Given an integer array with even length, where different numbers in this array represent different kinds of candies. Each number means one candy of th 阅读全文
posted @ 2017-07-28 09:32 Beserious 阅读(218) 评论(0) 推荐(0) 编辑
  2017年7月27日
摘要: Write a function that takes a string as input and returns the string reversed. Example:Given s = "hello", return "olleh". 反转字符串,逼我不用 reverse 阅读全文
posted @ 2017-07-27 22:02 Beserious 阅读(83) 评论(0) 推荐(0) 编辑
摘要: Given a string, you need to reverse the order of characters in each word within a sentence while still preserving whitespace and initial word order. E 阅读全文
posted @ 2017-07-27 21:40 Beserious 阅读(159) 评论(0) 推荐(0) 编辑
摘要: Given a List of words, return the words that can be typed using letters of alphabet on only one row's of American keyboard like the image below. Examp 阅读全文
posted @ 2017-07-27 21:21 Beserious 阅读(155) 评论(0) 推荐(0) 编辑
摘要: Given a positive integer, output its complement number. The complement strategy is to flip the bits of its binary representation. Note: Example 1: Exa 阅读全文
posted @ 2017-07-27 20:15 Beserious 阅读(130) 评论(0) 推荐(0) 编辑
摘要: Given an array of 2n integers, your task is to group these integers into n pairs of integer, say (a1, b1), (a2, b2), ..., (an, bn) which makes sum of 阅读全文
posted @ 2017-07-27 19:45 Beserious 阅读(111) 评论(0) 推荐(0) 编辑
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 46 下一页