代码改变世界

阅读排行榜

[Java] Frequently used method or solutions for issues

2018-11-16 12:07 by Johnson_强生仔仔, 176 阅读, 收藏,
摘要: 模板: Split string into parts based on new line in java Solution: Reference is here. 1) get out of the first part of a string until meet "<" Solution: R 阅读全文

[LeetCode] 700. Search in a Binary Search Treer_Easy_tag: Binary Search Tree

2019-11-17 01:01 by Johnson_强生仔仔, 175 阅读, 收藏,
摘要: 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 阅读全文

[LeetCode] 69. Sqrt(x)_Easy tag: Binary Search

2018-08-14 23:53 by Johnson_强生仔仔, 173 阅读, 收藏,
摘要: Implement int sqrt(int x). Compute and return the square root of x, where x is guaranteed to be a non-negative integer. Since the return type is an in 阅读全文

[LeetCode] 258. Add Digits_Easy tag: Math

2018-08-11 11:59 by Johnson_强生仔仔, 172 阅读, 收藏,
摘要: Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. Example: Follow up:Could you do it without any lo 阅读全文

[LeetCode] 1. Two Sum_Easy

2018-06-21 04:28 by Johnson_强生仔仔, 171 阅读, 收藏,
摘要: Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have ex 阅读全文
上一页 1 ··· 54 55 56 57 58 59 60 61 62 ··· 78 下一页