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

nunca

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

公告

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

2018年5月1日

LeetCode Medium: 34. Search for a Range

摘要: 一、题目 Given an array of integers nums sorted in ascending order, find the starting and ending position of a given target value. Your algorithm's runtim 阅读全文

posted @ 2018-05-01 09:48 乐晓东随笔 阅读(129) 评论(0) 推荐(0)

2018年4月30日

TypeError: only integer scalar arrays can be converted to a scalar index

摘要: 把代码处修改如下: 阅读全文

posted @ 2018-04-30 23:47 乐晓东随笔 阅读(5210) 评论(0) 推荐(0)

LeetCode Easy: 33. Search in Rotated Sorted Array

摘要: 一、题目 Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., [0,1,2,4,5,6,7] might become [4,5,6,7,0,1,2 阅读全文

posted @ 2018-04-30 10:58 乐晓东随笔 阅读(143) 评论(0) 推荐(0)

2018年4月29日

LeetCode Medium: 31. Next Permutation

摘要: 一、题目 Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers. If such arrangement is not p 阅读全文

posted @ 2018-04-29 10:00 乐晓东随笔 阅读(115) 评论(0) 推荐(0)

2018年4月28日

LeetCode Medium: 29. Divide Two Integers

摘要: 一、题目 Given two integers dividend and divisor, divide two integers without using multiplication, division and mod operator. Return the quotient after d 阅读全文

posted @ 2018-04-28 16:51 乐晓东随笔 阅读(147) 评论(0) 推荐(0)

2018年4月24日

python中merge、concat用法

摘要: 转载:https://blog.csdn.net/ly_ysys629/article/details/73849543 参考:https://blog.csdn.net/stevenkwong/article/details/52540605 数据规整化:合并、清理、过滤 pandas和pytho 阅读全文

posted @ 2018-04-24 17:35 乐晓东随笔 阅读(2865) 评论(0) 推荐(0)

python结巴分词

摘要: 转载: http://www.cnblogs.com/jiayongji/p/7119065.html 结巴是一个功能强大的分词库。 安装jieba pip install jieba 简单用法 结巴分词分为三种模式:精确模式(默认)、全模式和搜索引擎模式,下面对这三种模式分别举例介绍: 精确模式 阅读全文

posted @ 2018-04-24 15:44 乐晓东随笔 阅读(1111) 评论(0) 推荐(0)

python中 apply()函数的用法

摘要: 函数格式为:apply(func,*args,**kwargs) 用途:当一个函数的参数存在于一个元组或者一个字典中时,用来间接的调用这个函数,并肩元组或者字典中的参数按照顺序传递给参数 解析:args是一个包含按照函数所需参数传递的位置参数的一个元组,是不是很拗口,意思就是,假如A函数的函数位置为 阅读全文

posted @ 2018-04-24 12:00 乐晓东随笔 阅读(68614) 评论(0) 推荐(1)

python中输出打印避免换行、格式转化

摘要: 加上下面这句代码,输出时打印不换行 np.set_printoptions(linewidth=400) 强制输出小数方法:suppress=True 强制类型转换 d2 = d1.astype(int) 阅读全文

posted @ 2018-04-24 10:48 乐晓东随笔 阅读(1145) 评论(0) 推荐(0)

2018年4月22日

LeetCode Medium:24. Swap Nodes in Pairs

摘要: 一、题目 Given a linked list, swap every two adjacent nodes and return its head. Example: Note: Your algorithm should use only constant extra space. You m 阅读全文

posted @ 2018-04-22 13:01 乐晓东随笔 阅读(145) 评论(0) 推荐(0)

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