随笔分类 -  leetcode

上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 17 下一页
https://leetcode.com/problemset/all/
摘要:Find the minimum length word from a given dictionary words, which has all the letters from the string licensePlate. Such a word is said to complete th 阅读全文
posted @ 2018-10-25 10:36 bernieloveslife 阅读(296) 评论(0) 推荐(0)
摘要:On a N N grid, we place some 1 1 1 cubes. Each value v = grid[i][j] represents a tower of v cubes placed on top of grid cell (i, j). Return the total 阅读全文
posted @ 2018-10-25 10:36 bernieloveslife 阅读(117) 评论(0) 推荐(0)
摘要:A sentence S is given, composed of words separated by spaces. Each word consists of lowercase and uppercase letters only. We would like to convert the 阅读全文
posted @ 2018-10-25 10:36 bernieloveslife 阅读(179) 评论(0) 推荐(0)
摘要:Design a HashMap without using any built in hash table libraries. To be specific, your design should include these functions: put(key, value) : Insert 阅读全文
posted @ 2018-10-24 22:03 bernieloveslife 阅读(219) 评论(0) 推荐(0)
摘要:We are given two strings, A and B. A shift on A consists of taking string A and moving the leftmost character to the rightmost position. For example, 阅读全文
posted @ 2018-10-24 22:03 bernieloveslife 阅读(91) 评论(0) 推荐(0)
摘要:X is a good number if after rotating each digit individually by 180 degrees, we get a valid number that is different from X. Each digit must be rotate 阅读全文
posted @ 2018-10-24 22:03 bernieloveslife 阅读(141) 评论(0) 推荐(0)
摘要:Given a Binary Search Tree (BST) with the root node root, return the minimum difference between the values of any two different nodes in the tree. Exa 阅读全文
posted @ 2018-10-24 22:02 bernieloveslife 阅读(123) 评论(0) 推荐(0)
摘要:Given a Binary Search Tree (BST), convert it to a Greater Tree such that every key of the original BST is changed to the original key plus sum of all 阅读全文
posted @ 2018-10-24 22:02 bernieloveslife 阅读(137) 评论(0) 推荐(0)
摘要:Given a string S, we can transform every letter individually to be lowercase or uppercase to create another string. Return a list of all possible stri 阅读全文
posted @ 2018-10-23 11:04 bernieloveslife 阅读(126) 评论(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 @ 2018-10-23 11:04 bernieloveslife 阅读(99) 评论(0) 推荐(0)
摘要:Given a word, you need to judge whether the usage of capitals in it is right or not. We define the usage of capitals in a word to be right when one of 阅读全文
posted @ 2018-10-23 11:03 bernieloveslife 阅读(101) 评论(0) 推荐(0)
摘要:Given a Weather table, write a SQL query to find all dates' Ids with higher temperature compared to its previous (yesterday's) dates. + + + + | Id(INT 阅读全文
posted @ 2018-10-23 11:03 bernieloveslife 阅读(101) 评论(0) 推荐(0)
摘要:Write a SQL query to find all duplicate emails in a table named Person. + + + | Id | Email | + + + | 1 | a@b.com | | 2 | c@d.com | | 3 | a@b.com | + + 阅读全文
posted @ 2018-10-23 11:03 bernieloveslife 阅读(130) 评论(0) 推荐(0)
摘要:Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1's in their binary representation and r 阅读全文
posted @ 2018-10-22 12:06 bernieloveslife 阅读(94) 评论(0) 推荐(0)
摘要:Given a non empty, singly linked list with head node head, return a middle node of linked list. If there are two middle nodes, return the second middl 阅读全文
posted @ 2018-10-22 12:06 bernieloveslife 阅读(92) 评论(0) 推荐(0)
摘要:Given an n ary tree, return the postorder traversal of its nodes' values. For example, given a 3 ary tree: Return its postorder traversal as: [5,6,3,2 阅读全文
posted @ 2018-10-22 12:06 bernieloveslife 阅读(93) 评论(0) 推荐(0)
摘要:We are to write the letters of a given string S, from left to right into lines. Each line has maximum width 100 units, and if writing a letter would c 阅读全文
posted @ 2018-10-22 12:06 bernieloveslife 阅读(103) 评论(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 @ 2018-10-22 12:06 bernieloveslife 阅读(89) 评论(0) 推荐(0)
摘要:Calculate the sum of two integers a and b, but you are not allowed to use the operator + and . Example 1: Input: a = 1, b = 2 Output: 3 Example 2: Inp 阅读全文
posted @ 2018-10-21 12:24 bernieloveslife 阅读(110) 评论(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 @ 2018-10-21 12:24 bernieloveslife 阅读(123) 评论(0) 推荐(0)

上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 17 下一页