10 2017 档案

摘要: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-10-31 10:02 __Meng 阅读(186) 评论(0) 推荐(0) 编辑
摘要: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-10-30 09:59 __Meng 阅读(123) 评论(0) 推荐(0) 编辑
摘要:Write a function that takes a string as input and reverse only the vowels of a string. Example 1:Given s = "hello", return "holle". Example 2:Given s 阅读全文
posted @ 2017-10-27 10:46 __Meng 阅读(118) 评论(0) 推荐(0) 编辑
摘要:Implement strStr(). Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack. 判断子串needle 在主串haystack中首 阅读全文
posted @ 2017-10-26 10:38 __Meng 阅读(130) 评论(0) 推荐(0) 编辑
摘要:You need to construct a string consists of parenthesis and integers from a binary tree with the preorder traversing way. The null node needs to be rep 阅读全文
posted @ 2017-10-25 14:30 __Meng 阅读(152) 评论(0) 推荐(0) 编辑
摘要:Give a string s, count the number of non-empty (contiguous) substrings that have the same number of 0's and 1's, and all the 0's and all the 1's in th 阅读全文
posted @ 2017-10-24 10:05 __Meng 阅读(217) 评论(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-10-23 10:15 __Meng 阅读(178) 评论(0) 推荐(0) 编辑
摘要:《深入理解Java虚拟机》学习笔记 一、走近Java JDK(Java Development Kit):包含Java程序设计语言,Java虚拟机,JavaAPI,是用于支持 Java 程序开发的最小环境。 JRE(Java Runtime Environment):包含Java SE API 子集 阅读全文
posted @ 2017-10-22 21:13 __Meng 阅读(488) 评论(0) 推荐(0) 编辑
摘要:Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. For example,"A man, a plan, a canal: Pan 阅读全文
posted @ 2017-10-22 19:43 __Meng 阅读(142) 评论(0) 推荐(0) 编辑
摘要:Write a function to find the longest common prefix string amongst an array of strings. 输出几个字符串的最长公共前缀 C++(6ms): 阅读全文
posted @ 2017-10-20 09:50 __Meng 阅读(136) 评论(0) 推荐(0) 编辑
摘要:Given a non-empty string s, you may delete at most one character. Judge whether you can make it a palindrome. Example 1: Example 2: Java(57ms): 阅读全文
posted @ 2017-10-19 15:00 __Meng 阅读(179) 评论(0) 推荐(0) 编辑
摘要:Given a group of two strings, you need to find the longest uncommon subsequence of this group of two strings. The longest uncommon subsequence is defi 阅读全文
posted @ 2017-10-18 10:55 __Meng 阅读(151) 评论(0) 推荐(0) 编辑
摘要:Given two strings A and B, find the minimum number of times A has to be repeated such that B is a substring of it. If no such solution, return -1. For 阅读全文
posted @ 2017-10-17 19:35 __Meng 阅读(208) 评论(0) 推荐(0) 编辑
摘要:Count the number of segments in a string, where a segment is defined to be a contiguous sequence of non-space characters. Please note that the string 阅读全文
posted @ 2017-10-16 19:57 __Meng 阅读(165) 评论(0) 推荐(0) 编辑
摘要:Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string. If the last word 阅读全文
posted @ 2017-10-15 13:38 __Meng 阅读(147) 评论(0) 推荐(0) 编辑
摘要:Given two binary strings, return their sum (also a binary string). For example,a = "11"b = "1"Return "100". 字符串表示二进制数,求相加后的结果 C++(6ms): 阅读全文
posted @ 2017-10-14 16:23 __Meng 阅读(173) 评论(0) 推荐(0) 编辑
摘要:Initially, there is a Robot at position (0, 0). Given a sequence of its moves, judge if this robot makes a circle, which means it moves back to the or 阅读全文
posted @ 2017-10-13 17:36 __Meng 阅读(149) 评论(0) 推荐(0) 编辑
摘要:Given a 2D integer matrix M representing the gray scale of an image, you need to design a smoother to make the gray scale of each cell becomes the ave 阅读全文
posted @ 2017-10-12 09:47 __Meng 阅读(272) 评论(0) 推荐(0) 编辑
摘要:Given an array with n integers, your task is to check if it could become non-decreasing by modifying at most 1 element. We define an array is non-decr 阅读全文
posted @ 2017-10-11 11:24 __Meng 阅读(217) 评论(0) 推荐(0) 编辑
摘要:Given an integer array, you need to find one continuous subarray that if you only sort this subarray in ascending order, then the whole array will be 阅读全文
posted @ 2017-10-10 18:50 __Meng 阅读(181) 评论(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-10-10 10:41 __Meng 阅读(146) 评论(0) 推荐(0) 编辑
摘要:Given a non-empty 2D array grid of 0's and 1's, an island is a group of 1's (representing land) connected 4-directionally (horizontal or vertical.) Yo 阅读全文
posted @ 2017-10-09 09:52 __Meng 阅读(191) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示