代码改变世界

阅读排行榜

[LeetCode] 709. To Lower Case_Easy

2018-08-20 01:47 by Johnson_强生仔仔, 232 阅读, 收藏,
摘要: Implement function ToLowerCase() that has a string parameter str, and returns the same string in lowercase. Example 1: Input: "Hello" Output: "hello" 阅读全文

[LeetCode] 193. Valid Phone Numbers_Easy tag: Bash

2018-08-11 05:32 by Johnson_强生仔仔, 232 阅读, 收藏,
摘要: Given a text file file.txt that contains list of phone numbers (one per line), write a one liner bash script to print all valid phone numbers. You may 阅读全文

[LeetCode] 121. Best Time to Buy and Sell Stock_Easy tag: Dynamic Programming

2018-08-03 23:27 by Johnson_强生仔仔, 232 阅读, 收藏,
摘要: Say you have an array for which the ith element is the price of a given stock on day i. If you were only permitted to complete at most one transaction 阅读全文

[LeetCode] 15. 3Sum_Medium tag: Array

2019-05-12 03:51 by Johnson_强生仔仔, 231 阅读, 收藏,
摘要: Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplets in the array which gives the s 阅读全文

[LeetCode] 106. Construct Binary Tree from Postorder and Inorder Traversal_Medium tag: Tree Traversal

2018-07-24 04:23 by Johnson_强生仔仔, 231 阅读, 收藏,
摘要: Given inorder and postorder traversal of a tree, construct the binary tree. Note:You may assume that duplicates do not exist in the tree. For example, 阅读全文
上一页 1 ··· 33 34 35 36 37 38 39 40 41 ··· 78 下一页