上一页 1 ··· 34 35 36 37 38 39 40 41 42 ··· 76 下一页
摘要: 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 阅读(120) 评论(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 阅读(135) 评论(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 阅读(100) 评论(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 阅读(99) 评论(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 阅读(92) 评论(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 阅读(91) 评论(0) 推荐(0)
上一页 1 ··· 34 35 36 37 38 39 40 41 42 ··· 76 下一页