摘要: You are given a string, s, and a list of words, words, that are all of the same length. Find all starting indices of substring(s) in s that is a conca 阅读全文
posted @ 2018-09-18 09:23 轻风舞动 阅读(384) 评论(0) 推荐(0) 编辑
摘要: 原题目:Search for a Range, 现在题目改为: 34. Find First and Last Position of Element in Sorted Array Given an array of integers nums sorted in ascending order, 阅读全文
posted @ 2018-09-18 09:03 轻风舞动 阅读(424) 评论(0) 推荐(0) 编辑
摘要: Write a program to solve a Sudoku puzzle by filling the empty cells. A sudoku solution must satisfy all of the following rules: Empty cells are indica 阅读全文
posted @ 2018-09-18 08:40 轻风舞动 阅读(427) 评论(0) 推荐(0) 编辑
摘要: You are playing the following Flip Game with your friend: Given a string that contains only these two characters: + and -, you and your friend take tu 阅读全文
posted @ 2018-09-18 08:27 轻风舞动 阅读(1455) 评论(0) 推荐(0) 编辑
摘要: You are playing the following Flip Game with your friend: Given a string that contains only these two characters: + and -, you and your friend take tu 阅读全文
posted @ 2018-09-18 08:14 轻风舞动 阅读(810) 评论(0) 推荐(0) 编辑
摘要: Given an array with n integers, you need to find if there are triplets (i, j, k) which satisfies following conditions: where we define that subarray ( 阅读全文
posted @ 2018-09-18 06:35 轻风舞动 阅读(1321) 评论(0) 推荐(0) 编辑
摘要: Given a picture consisting of black and white pixels, and a positive integer N, find the number of black pixels located at some specific row R and col 阅读全文
posted @ 2018-09-18 03:43 轻风舞动 阅读(852) 评论(0) 推荐(0) 编辑
摘要: Given a picture consisting of black and white pixels, find the number of black lonely pixels. The picture is represented by a 2D char array consisting 阅读全文
posted @ 2018-09-18 03:37 轻风舞动 阅读(1374) 评论(1) 推荐(0) 编辑
摘要: Given two strings s and t, determine if they are isomorphic. Two strings are isomorphic if the characters in s can be replaced to get t. All occurrenc 阅读全文
posted @ 2018-09-18 01:51 轻风舞动 阅读(987) 评论(0) 推荐(0) 编辑