上一页 1 ··· 7 8 9 10 11 12 13 14 下一页

2018年10月11日

摘要: You're now a baseball game point recorder. Given a list of strings, each string can be one of the 4 following types: Each round's operation is permane 阅读全文
posted @ 2018-10-11 13:49 chiyeung 阅读(85) 评论(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 @ 2018-10-11 13:34 chiyeung 阅读(82) 评论(0) 推荐(0) 编辑

2018年10月10日

摘要: Given a positive integer N, find and return the longest distance between two consecutive 1's in the binary representation of N. If there aren't two co 阅读全文
posted @ 2018-10-10 13:23 chiyeung 阅读(202) 评论(0) 推荐(0) 编辑

2018年10月9日

摘要: A matrix is Toeplitz if every diagonal from top-left to bottom-right has the same element. Now given an M x N matrix, return True if and only if the m 阅读全文
posted @ 2018-10-09 10:31 chiyeung 阅读(199) 评论(0) 推荐(0) 编辑

2018年10月8日

摘要: We are given two sentences A and B. (A sentence is a string of space separated words. Each word consists only of lowercase letters.) A word is uncommo 阅读全文
posted @ 2018-10-08 12:20 chiyeung 阅读(288) 评论(0) 推荐(0) 编辑
摘要: Consider all the leaves of a binary tree. From left to right order, the values of those leaves form a leaf value sequence. For example, in the given t 阅读全文
posted @ 2018-10-08 11:55 chiyeung 阅读(172) 评论(0) 推荐(0) 编辑
摘要: Given a string S and a character C, return an array of integers representing the shortest distance from the character C in the string. Example 1: Note 阅读全文
posted @ 2018-10-08 11:45 chiyeung 阅读(105) 评论(0) 推荐(0) 编辑

2018年10月7日

摘要: Given a string S, return the "reversed" string where all characters that are not a letter stay in the same place, and all letters reverse their positi 阅读全文
posted @ 2018-10-07 14:04 chiyeung 阅读(153) 评论(0) 推荐(0) 编辑
摘要: Given two binary trees and imagine that when you put one of them to cover the other, some nodes of the two trees are overlapped while the others are n 阅读全文
posted @ 2018-10-07 13:25 chiyeung 阅读(130) 评论(0) 推荐(0) 编辑

2018年10月6日

摘要: Given the root node of a binary search tree (BST) and a value. You need to find the node in the BST that the node's value equals the given value. Retu 阅读全文
posted @ 2018-10-06 21:42 chiyeung 阅读(452) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 下一页

导航