• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录

nunca

但行好事 莫问前程
  • 博客园
  • 联系
  • 订阅
  • 管理

公告

上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页

2018年4月21日

LeetCode Medium:22. Generate Parentheses

摘要: 一、题目 Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. For example, given n = 3, a solution set 阅读全文

posted @ 2018-04-21 19:55 乐晓东随笔 阅读(144) 评论(0) 推荐(0)

2018年4月19日

LeetCode Medium: 19. Remove Nth Node From End of List

摘要: 一、题目 Given a linked list, remove the n-th node from the end of list and return its head. Example: Note: Given n will always be valid. 给定一个链接的 list,移除从 阅读全文

posted @ 2018-04-19 11:12 乐晓东随笔 阅读(137) 评论(0) 推荐(0)

2018年4月17日

python中numpy中的multiply、*、matul 的区别

摘要: numpy中的multiply、*、matul 的区别 1、对于矩阵(matrix)而言,multiply是对应元素相乘,而 * 、np.matmul() 函数 与 np.dot()函数 相当于矩阵乘法(矢量积),对应的列数和行数必须满足乘法规则;如果希望以数量积的方式进行,则必须使用 np.mul 阅读全文

posted @ 2018-04-17 22:11 乐晓东随笔 阅读(6307) 评论(0) 推荐(0)

LeetCode Medium: 18. 4Sum

摘要: 一、题目 Given an array nums of n integers and an integer target, are there elements a, b, c, and d in nums such that a + b + c + d = target? Find all uni 阅读全文

posted @ 2018-04-17 11:12 乐晓东随笔 阅读(206) 评论(0) 推荐(0)

2018年4月16日

LeetCode Medium: 16. 3Sum Closest

摘要: 一、题目 Given an array nums of n integers and an integer target, find three integers in nums such that the sum is closest to target. Return the sum of th 阅读全文

posted @ 2018-04-16 23:44 乐晓东随笔 阅读(108) 评论(0) 推荐(0)

2018年4月14日

LeetCode Medium: 17. Letter Combinations of a Phone Number

摘要: 一、题目 Given a string containing digits from 2-9 inclusive, return all possible letter combinations that the number could represent. A mapping of digit 阅读全文

posted @ 2018-04-14 08:49 乐晓东随笔 阅读(153) 评论(0) 推荐(0)

2018年4月13日

LeetCode Medium:15. 3Sum

摘要: 一、题目 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 阅读全文

posted @ 2018-04-13 09:28 乐晓东随笔 阅读(122) 评论(0) 推荐(0)

2018年4月12日

LeetCode Medium:12. Integer to Roman

摘要: 一、题目 Given an integer, convert it to a roman numeral. Input is guaranteed to be within the range from 1 to 3999. 把给定的整数转换成罗马数字 二、思路 这道题其实跟13题是两个相反的过程, 阅读全文

posted @ 2018-04-12 11:48 乐晓东随笔 阅读(114) 评论(0) 推荐(0)

2018年4月11日

LeetCode Medium: 11. Container With Most Water

摘要: 一、题目 Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two 阅读全文

posted @ 2018-04-11 07:36 乐晓东随笔 阅读(137) 评论(0) 推荐(0)

2018年4月10日

TypeError: unsupported operand type(s) for /: 'map' and 'int'

摘要: 遇到这样的情况,只需要把程序中的对应的map处改成如下,前面加一个list就可以啦! 阅读全文

posted @ 2018-04-10 20:36 乐晓东随笔 阅读(6557) 评论(0) 推荐(0)

上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页
 
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3