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

nunca

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

公告

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

2018年5月14日

python中sorted函数

摘要: 官方文档:https://docs.python.org/3/library/functions.html?highlight=sorted#sorted Return a new sorted list from the items in iterable. Has two optional ar 阅读全文

posted @ 2018-05-14 08:37 乐晓东随笔 阅读(899) 评论(0) 推荐(0)

2018年5月13日

python数据特征预处理

摘要: 一、属性规约 在进行数据预处理的过程中,如果数据的某一列都是一样的或者属性是一样的,那么这一列对我们的预测没有帮助,应该将这一列去掉,pandas中如果某一列属性值相同,但是此列中有缺失值(NaN),pandas会默认其有两个属性,我们在进行此操作的过程中应该首先去掉缺失值,然后检查唯一性。代码如下 阅读全文

posted @ 2018-05-13 09:32 乐晓东随笔 阅读(2093) 评论(0) 推荐(0)

2018年5月11日

LeetCode Hard: 23. Merge k Sorted Lists

摘要: 一、题目 Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity. Example: Input: [ 1->4->5, 1->3->4, 2->6 ] Out 阅读全文

posted @ 2018-05-11 08:10 乐晓东随笔 阅读(155) 评论(0) 推荐(0)

2018年5月10日

LeetCode Hard: 4. Median of Two Sorted Arrays

摘要: 一、题目 There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexi 阅读全文

posted @ 2018-05-10 08:45 乐晓东随笔 阅读(168) 评论(0) 推荐(0)

2018年5月9日

LeetCode Medium: 49. Group Anagrams

摘要: 一、题目 Given an array of strings, group anagrams together. Example: Input: ["eat", "tea", "tan", "ate", "nat", "bat"], Output: [ ["ate","eat","tea"], [" 阅读全文

posted @ 2018-05-09 07:50 乐晓东随笔 阅读(124) 评论(0) 推荐(0)

2018年5月8日

LeetCode Easy: 48. Rotate Image

摘要: 一、题目 You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwise). Note: You have to rotate the image in-place, 阅读全文

posted @ 2018-05-08 07:52 乐晓东随笔 阅读(178) 评论(0) 推荐(0)

2018年5月5日

LeetCode Medium: 43. Multiply Strings

摘要: 这道题不解释,纯粹是为了延续记录。两行代码。 一、题目 Given two non-negative integers num1 and num2 represented as strings, return the product of num1 and num2, also represente 阅读全文

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

2018年5月4日

LeetCode Medium: 40. Combination Sum II

摘要: 一、题目 Given a collection of candidate numbers (candidates) and a target number (target), find all unique combinations in candidates where the candidate 阅读全文

posted @ 2018-05-04 08:16 乐晓东随笔 阅读(106) 评论(0) 推荐(0)

2018年5月3日

LeetCode Medium: 39. Combination Sum

摘要: 一、题目 Given a set of candidate numbers (candidates) (without duplicates) and a target number (target), find all unique combinations in candidates where 阅读全文

posted @ 2018-05-03 15:49 乐晓东随笔 阅读(218) 评论(0) 推荐(0)

2018年5月2日

LeetCode Medium: 36. Valid Sudoku

摘要: 一、题目 Determine if a 9x9 Sudoku board is valid. Only the filled cells need to be validated according to the following rules: Each row must contain the  阅读全文

posted @ 2018-05-02 21:08 乐晓东随笔 阅读(187) 评论(0) 推荐(0)

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