ICode9

精准搜索请尝试: 精确搜索
  • LeetCode 169 Majority Element 解题报告2019-04-12 09:44:18

    题目要求 Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times. You may assume that the array is non-empty and the majority element always exist in the array. 题目分析及思路 给定一个

  • LeetCode-169 求众数2019-03-13 16:55:24

    # 给定一个大小为 n 的数组,找到其中的众数。众数是指在数组中出现次数大于 ⌊ n/2 ⌋ 的元素。 # # 你可以假设数组是非空的,并且给定的数组总是存在众数。 # # 示例 1: # 输入: [3,2,3] # 输出: 3 # # 示例 2: # 输入: [2,2,1,1,1,2,2] # 输出: 2 class Solution: de

  • 169美女图片2019-03-06 09:54:14

    import requests# from lxml import etreefrom pyquery import PyQuery# from bs4 import BeautifulSoup count = 1url = "https://www.169tp.com/rentiyishu/"headers = {'User-Agent':'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (K

  • 拼接平方数2019-02-18 20:52:08

    小明发现49很有趣,首先,它是个平方数。它可以拆分为4和9,拆分出来的部分也是平方数。169也有这个性质,我们权且称它们为:拼接平方数。100可拆分1 00,这有点勉强,我们规定,0 00 000 等都不算平方数。小明想:还有哪些数字是这样的呢?你的任务出现了:找到某个区间的所有拼接平方数。 【输入格式】

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有