自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(40)
  • 收藏
  • 关注

原创 leetcode 825. Friends Of Appropriate Ages

leetcode 825. Friends Of Appropriate Ages原题地址:https://leetcode.com/problems/friends-of-appropriate-ages/题目Some people will make friend requests. The list of their ages is given and ages[i] is ...

2018-05-02 19:56:41 617 1

原创 leetcode 824. Goat Latin

leetcode 824. Goat Latin原题地址:https://leetcode.com/problems/goat-latin/题目A sentence S is given, composed of words separated by spaces. Each word consists of lowercase and uppercase letters on...

2018-05-02 19:50:04 455

转载 NMS—非极大值抑制

NMS——非极大值抑制 转载自: https://blog.csdn.net/shuzfan/article/details/52711706 NMS(non maximum suppression),中文名非极大值抑制,在很多计算机视觉任务中都有广泛应用,如:边缘检测、目标检测等。 这里主要以人脸检测中的应用为例,来说明NMS...

2018-04-23 21:13:02 268

原创 leetcode 823. Binary Trees With Factors

leetcode 823. Binary Trees With Factors原题地址:https://leetcode.com/problems/binary-trees-with-factors/题目Given an array of unique integers, each integer is strictly greater than 1.We make a b...

2018-04-22 18:20:51 392

原创 leetcode 822. Card Flipping Game

leetcode 822. Card Flipping Game原题地址:https://leetcode.com/problems/card-flipping-game/题目On a table are N cards, with a positive integer printed on the front and back of each card (possibly d...

2018-04-22 18:15:58 475

原创 leetcode 821. Shortest Distance to a Character

leetcode 821. Shortest Distance to a Character原题地址:https://leetcode.com/problems/shortest-distance-to-a-character/题目Given a string S and a character C, return an array of integers representing...

2018-04-22 18:08:59 359

原创 leetcode 820. Short Encoding of Words

leetcode 820. Short Encoding of Words原题地址:https://leetcode.com/problems/short-encoding-of-words/题目Given a list of words, we may encode it by writing a reference string S and a list of indexe...

2018-04-22 18:05:36 599

原创 leetcode 818. Race Car

leetcode 818. Race Car原题地址:https://leetcode.com/problems/race-car/题目Your car starts at position 0 and speed +1 on an infinite number line. (Your car can go into negative positions.)Your c...

2018-04-16 11:05:30 1298

原创 leetcode 819. Most Common Word

leetcode 819. Most Common Word原题地址:https://leetcode.com/problems/most-common-word/题目Given a paragraph and a list of banned words, return the most frequent word that is not in the list of ban...

2018-04-15 22:06:42 662

原创 leetcode 817. Linked List Components

leetcode 817. Linked List Components原题地址:https://leetcode.com/problems/linked-list-components/题目We are given head, the head node of a linked list containing unique integer values.We are al...

2018-04-15 22:02:45 446

原创 leetcode 816. Ambiguous Coordinates

leetcode 816. Ambiguous Coordinates原题地址:https://leetcode.com/problems/ambiguous-coordinates/题目We had some 2-dimensional coordinates, like “(1, 3)” or “(2, 0.5)”. Then, we removed all commas...

2018-04-15 21:58:28 420

原创 leetcode 815. Bus Routes

leetcode 815. Bus Routes原题地址:https://leetcode.com/problems/bus-routes/ 代码转载自:https://leetcode.com/problems/bus-routes/discuss/122723/Python-Simple-BFS题目We have a list of bus routes. Each ro...

2018-04-08 12:14:21 1113

原创 leetcode 813. Largest Sum of Averages

leetcode 813. Largest Sum of Averages原题地址:https://leetcode.com/problems/largest-sum-of-averages/题目We partition a row of numbers A into at most K adjacent (non-empty) groups, then our score i...

2018-04-08 12:01:19 671

原创 leetcode 814. Binary Tree Pruning

leetcode 814. Binary Tree Pruning原题地址:https://leetcode.com/problems/binary-tree-pruning/题目We are given the head node root of a binary tree, where additionally every node’s value is either a ...

2018-04-08 11:57:32 224

原创 leetcode 812. Largest Triangle Area

leetcode 812. Largest Triangle Area原题地址:https://leetcode.com/problems/largest-triangle-area/题目You have a list of points in the plane. Return the area of the largest triangle that can be form...

2018-04-08 11:48:39 367

原创 leetcode 810. Chalkboard XOR Game

leetcode 810. Chalkboard XOR Game原题地址:https://leetcode.com/problems/chalkboard-xor-game/题目We are given non-negative integers nums[i] which are written on a chalkboard. Alice and Bob take tu...

2018-04-01 20:04:15 554

原创 leetcode 808. Soup Servings

leetcode 808. Soup Servings原题地址:https://leetcode.com/problems/soup-servings/题目There are two types of soup: type A and type B. Initially we have N ml of each type of soup. There are four kin...

2018-04-01 18:49:02 681

原创 leetcode 809. Expressive Words

leetcode 809. Expressive Words原题地址:https://leetcode.com/problems/expressive-words/题目Sometimes people repeat letters to represent extra feeling, such as “hello” -> “heeellooo”, “hi” ->...

2018-04-01 18:43:30 534

原创 leetcode 811. Subdomain Visit Count

leetcode 811. Subdomain Visit Count原题地址:https://leetcode.com/problems/subdomain-visit-count/题目A website domain like “discuss.leetcode.com” consists of various subdomains. At the top level, ...

2018-04-01 18:39:05 450

原创 2018北邮计算机院机试真题

2018北邮计算机院机试真题(回忆版,答案仅供参考)根据刚机试结束的同学回忆,今年北邮机试题目下,并附上本人解答。(应该有一些细节没考虑,如果发现问题,欢迎留言指正交流) 大神就当看个笑话 =。=Problem A题目:输入数据0-2的32次方范围,化成二进制,然后逆序这个二进制序列,转换成十进制。测试数据:2输出:1测试数据:10 输出...

2018-03-31 00:58:59 9963 12

原创 2018北邮网研院机试真题

2018北邮网研院机试真题(答案仅供参考)根据刚机试结束的同学回忆,今年北邮机试题目下,并附上本人解答。(应该有一些细节没考虑,如果发现问题,欢迎留言指正交流) 大神就当看个笑话 =。=Problem A题目: 类似超市结账,计算购买的商品的总价格。输入:第一行为测试数据组数T(0< T <= 10) 每组数据第一行为购买商品的种类n,接下来n行...

2018-03-29 21:05:00 7088

转载 两句话掌握python最难知识点——元类

两句话掌握python最难知识点——元类转载自: https://segmentfault.com/a/1190000011447445 文章写得比较生动,点赞。千万不要被所谓“元类是99%的python程序员不会用到的特性”这类的说辞吓住。因为每个中国人,都是天生的元类使用者学懂元类,你只需要知道两句话:道生一,一生二,二生三,三生万物。我是谁?我从哪来里?我要到哪里去?...

2018-03-28 15:20:54 303

原创 数学工具--母函数

数学工具—母函数母函数也叫生成函数,是组合数学中尤其是计数方面的一个重要理论和工具。生成函数有普通型生成函数和指数型生成函数两种,其中普通型用的比较多。形式上说,普通型生成函数用于解决多重集的组合问题,而指数型母函数用于解决多重集的排列问题。母函数还可以解决递归数列的通项问题(例如使用母函数解决斐波那契数列的通项公式)。定义(1).设u=(ui)i≥0=(u0,u1,u2,…,...

2018-03-26 23:46:48 453

原创 leetcode805. Split Array With Same Average

leetcode805. Split Array With Same Average原题地址:https://leetcode.com/problems/split-array-with-same-average/题目In a given integer array A, we must move every element of A to either list B or l...

2018-03-25 21:22:04 484

原创 leetcode807.Max Increase to Keep City Skyline

leetcode807. Max Increase to Keep City Skyline原题地址:https://leetcode.com/problems/max-increase-to-keep-city-skyline/题目In a 2 dimensional array grid, each value grid[i][j] represents the height ...

2018-03-25 20:15:21 211

原创 leetcode806. Number of Lines To Write String

leetcode806. Number of Lines To Write String(python)原题地址:https://leetcode.com/problems/number-of-lines-to-write-string/题目We are to write the letters of a given string S, from left to right int...

2018-03-25 20:14:35 215

原创 leetcode804. Unique Morse Code Words

leetcode804. Unique Morse Code Words(python)原题地址:https://leetcode.com/problems/unique-morse-code-words/题目International Morse Code defines a standard encoding where each letter is mapped to a...

2018-03-25 20:13:36 309

转载 Caffe学习:Layers

Caffe学习:Layers转载自:https://blog.csdn.net/u011762313/article/details/47361571 目录:Caffe学习:LayersVision LayersConvolutionPoolingLocal Response Normalizatio...

2018-03-23 11:27:03 148

转载 卷积神经网络概念与原理

卷积神经网络概念与原理 一、卷积神经网络的基本概念转载自:http://blog.csdn.net/yunpiao123456/article/details/52437794       受Hubel和Wiesel对猫视觉皮层电生理研究启发,有人提出卷积神经网络(CNN),Yann Lecun 最早将CNN用于手写数字...

2018-03-22 10:15:04 425

转载 Java开发中的23种设计模式详解

Java开发中的23种设计模式详解 2013年10月28日 09:22:54 标签: ...

2018-03-19 00:01:15 194

原创 leetcode803. Bricks Falling When Hit(python)

803. Bricks Falling When Hit(python)原题地址:https://leetcode.com/problems/bricks-falling-when-hit/摘自leetcode 用户:cthbst题目We have a grid of 1s and 0s; the 1s in a cell represent bricks. A bri...

2018-03-18 19:07:07 638

原创 leetcode802. Find Eventual Safe States(python)

leetcode802. Find Eventual Safe States(python)原题地址:https://leetcode.com/problems/find-eventual-safe-states/题目In a directed graph, we start at some node and every turn, walk along a directed ed...

2018-03-18 14:35:36 451

原创 leetcode801. Minimum Swaps To Make Sequences Increasing(python)

leetcode801. Minimum Swaps To Make Sequences Increasing(python)原题地址:https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/题目We have two integer sequences A and B of the same...

2018-03-18 14:31:18 840

原创 leetcode800. Similar RGB Color(python)

leetcode800. Similar RGB Color(python)原题地址:题目In the following, every capital letter represents some hexadecimal digit from 0 to f.The red-green-blue color “#AABBCC” can be written as “#ABC...

2018-03-18 14:27:25 751

原创 计算PI(π)的几种方法

计算π的方法一、蒙特卡罗法这种方法是一种利用计算机随机数的功能基于“随机数”的算法,通过计算落在单位圆内的点与落在正方形内的 点的比值求PI。 由于图形的对称性,我们靠考虑该图的四分之一部分。 假定一点能够均匀地扔到一个正方形中,计算落入其中的点个数。通过计数其中落入内切圆的点的个数; 如果一共投入N个点,其中有M个落入圆中,则只要点均匀,假定圆周的半径为R,则: M...

2018-03-13 21:15:23 95735 6

原创 Strassen矩阵乘法

Strassen矩阵乘法矩阵乘法是线性代数中最常见的运算之一,它在数值计算中有广泛的应用。 给定两个的矩阵A和B,求它们的积 C = A × B 算法: cij=∑kaikbkjcij=∑kaikbkj c_{ij} = \sum_k a_{ik}b_{kj} 直接相乘做累加,需要做N3N3N^3 乘法,复杂度为O(N3O(N3O(N^3)。假设有以下矩阵等式:[C...

2018-03-13 20:16:45 697

原创 leetcode799. Champagne Tower(python3)

leetcode799. Champagne Tower(python3)原题地址:https://leetcode.com/problems/champagne-tower/题目We stack glasses in a pyramid, where the first row has 1 glass, the second row has 2 glasses, and so...

2018-03-11 19:08:33 570

原创 leetcode 798. Smallest Rotation with Highest Score(java)

leetcode798. Smallest Rotation with Highest Score(java)原题地址:https://leetcode.com/problems/smallest-rotation-with-highest-score/题目Given an array A, we may rotate it by a non-negative integer...

2018-03-11 18:57:42 667

原创 leetcode 797. All Paths From Source to Target(python3)

leetcode 797. All Paths From Source to Target(python3)原题地址:https://leetcode.com/problems/all-paths-from-source-to-target/题目Given a directed, acyclic graph of N nodes. Find all possible pat...

2018-03-11 18:08:46 548

原创 leetcode 796.Rotate String(python3)

leetcode 796.Rotate String(python3)原题地址:https://leetcode.com/problems/rotate-string/题目We are given two strings, A and B.A shift on A consists of taking string A and moving the leftmost ch...

2018-03-11 17:58:04 568

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除