摘要:
题意: You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of you take turns to remove 1 to 3 阅读全文
摘要:
题意: Write a function that takes a string as input and returns the string reversed. Example:Given s = "hello", return "olleh". 实现字符串的反转。 刚开始时,我是直接strin 阅读全文
摘要:
leetcode的第一题,two sum: Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that ea 阅读全文
摘要:
在学习爬虫的过程了解到了在访问服务器时,有两种请求的方式,Post方式和Get方式 Post方式:向指定的资源提交要被处理的数据 Get方式:从指定的资源请求数据。 GET 方法 请注意,查询字符串(名称/值对)是在 GET 请求的 URL 中发送的: 有关 GET 请求的其他一些注释: GET 请 阅读全文
摘要:
Calculate the sum of two integers a and b, but you are not allowed to use the operator + and -. Example:Given a = 1 and b = 2, return 3. 利用位运算, 这里用到了一 阅读全文
摘要:
题意: Given a set of non-overlapping intervals, insert a new interval into the intervals (merge if necessary). You may assume that the intervals were in 阅读全文