摘要: Regular Expression Matching (H) Given an input string (s) and a pattern (p), implement regular expression matching with support for '.' and '*'. '.' M 阅读全文
posted @ 2020-06-19 06:54 墨云黑 阅读(102) 评论(0) 推荐(0) 编辑
摘要: Integer to Roman (M) 题目 Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. Symbol Value I 1 V 5 X 10 L 50 C 100 D 500 阅读全文
posted @ 2020-06-18 10:25 墨云黑 阅读(186) 评论(0) 推荐(0) 编辑
摘要: Bulls and Cows (E) 题目 You are playing the following Bulls and Cows game with your friend: You write down a number and ask your friend to guess what th 阅读全文
posted @ 2020-06-18 08:37 墨云黑 阅读(248) 评论(0) 推荐(0) 编辑
摘要: H-Index (M) 题目 Given an array of citations (each citation is a non-negative integer) of a researcher, write a function to compute the researcher's h-i 阅读全文
posted @ 2020-06-18 06:58 墨云黑 阅读(216) 评论(0) 推荐(0) 编辑
摘要: Missing Number (E) 题目 Given an array containing n distinct numbers taken from 0, 1, 2, ..., n, find the one that is missing from the array. Example 1: 阅读全文
posted @ 2020-06-17 08:27 墨云黑 阅读(187) 评论(0) 推荐(0) 编辑
摘要: Palindrome Number (E) 题目 Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward. Example 阅读全文
posted @ 2020-06-17 06:48 墨云黑 阅读(121) 评论(0) 推荐(0) 编辑
摘要: String to Integer (atoi) (M) 题目 Implement atoi which converts a string to an integer. The function first discards as many whitespace characters as nec 阅读全文
posted @ 2020-06-17 06:35 墨云黑 阅读(227) 评论(0) 推荐(0) 编辑
摘要: House Robber II (M) 题目 You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed. All hous 阅读全文
posted @ 2020-06-17 01:25 墨云黑 阅读(45) 评论(0) 推荐(0) 编辑
摘要: House Robber (E) 题目 You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only co 阅读全文
posted @ 2020-06-16 10:16 墨云黑 阅读(137) 评论(0) 推荐(0) 编辑
摘要: Repeated DNA Sequences (M) 题目 All DNA is composed of a series of nucleotides abbreviated as A, C, G, and T, for example: "ACGAATTCCG". When studying D 阅读全文
posted @ 2020-06-16 10:15 墨云黑 阅读(123) 评论(0) 推荐(0) 编辑