ICode9

精准搜索请尝试: 精确搜索
  • CF1446D2 Frequency Problem (Hard Version)2021-04-16 16:01:50

    CF1446D2 Frequency Problem (Hard Version)(根号分治) 首先这道题有一个结论:这两个元素当中一定有一个是众数,证明略。 那么考虑对于出现次数大于等于 \(\sqrt{n}\) 的数,我们可以把这些数枚举一下,然后这样做: 把值为当前数的位置标为 1 ,把值为众数的标为 -1 ,其他的都是 0 ,然后做一遍

  • Excel按区间查询,大咖有句悄悄话2021-03-16 19:51:08

    表亲们,早上好,很久不见了,像想念静静一样想念你们(此处省略好几万字……)。嗯,打个响指,说正事呗,今天和大家分享的EXCEL知识是两个函数公式套路,有关数据区间查询的。LOOKUP函数 第一个函数是大家耳熟能详的LOOKUP。举个例子,如下图,A1:B6区域是一张成绩评价标准表,小于60不及格,大于等于60小

  • UVA240 Variable Radix Huffman Encoding2021-02-21 19:30:01

    UVA240 可变基数霍夫曼编码 题目描述 哈夫曼编码是一种最优编码方法。根据已知源字母表中字符出现的频率,将源字母表中字符编码为目标字母表中字符,最优的意思是编码信息的平均长度最小。在该问题中,你需要将 N 个大写字母(源字母 S 1 …S N ,频率 f 1 …f N )转换成 R 进制

  • [LeetCode] 1636. Sort Array by Increasing Frequency2021-02-15 06:32:44

    Given an array of integers nums, sort the array in increasing order based on the frequency of the values. If multiple values have the same frequency, sort them in decreasing order. Return the sorted array. Example 1: Input: nums = [1,1,2,2,2,3] Output:

  • Detecting CTCSS tones with Goertzel's algorithm2021-02-12 13:03:57

    Detecting CTCSS tones with Goertzel’s algorithm April 21, 2006 Embedded StaffMost engineers involved in the design of Software Defined Radio (SDR) applications are well acquainted with the Fast Fourier Transform (FFT) and related algorithms. The lesser-kn

  • Computer Vision 计算机视觉常见问题整理2021-01-31 17:02:03

    这里是一些学习CV时整理的一些问题集,可能有助于复习等。由于该笔记是很早以前制作的,暂时不做修改。 CV Question what’s machine vision? Machine vision (MV) is the technology and methods used to provide imaging-based automatic inspection and analysis for such ap

  • STM32获取系统时钟源和系统时钟分配情况2021-01-20 20:33:14

    STM32获取系统时钟源和系统时钟分配情况 一、相关库函数 ST官方提供了一些函数接口可以用来获取系统时钟的信息 获取系统当前使用的时钟源 stm32f10x_rcc.c /** * @brief Returns the clock source used as system clock. * @param None * @retval The clock sou

  • LeetCode|387题|字符串中的第一个唯一字符2021-01-16 12:01:35

    数据结构和算法QQ交流群:600601067 LeetCode|387题|字符串中的第一个唯一字符 详细注释可执行代码 // // Created by q on 2021/1/16. // #include <unordered_map> #include <string> #include <iostream> using namespace std; class Solution { public: int firstUni

  • 用python实现RFM模型2021-01-10 22:03:56

    先上代码 倒库 import pandas as pd import numpy as np import faker import datetime 造数据 f = faker.Faker('zh-cn') df = pd.DataFrame({ '客户':[f.name() for i in range(20000)], '购买日期':[f.date_between(start_date='-1y',

  • LTE物理层2021-01-09 12:03:04

    目录 Overview of the LTE Physical Layer一、前言二、相关知识 Overview of the LTE Physical Layer 一、前言 本文介绍 Long Term Evolution (LTE) 的无线接入技术以及 Physical Layer (PHY),这里主要讲解一下关于LTE的物理层OFDM相关知识点,了解其底层设计的基本结构,在

  • 1705. 比较字符串 II2020-12-24 02:02:13

    1705. 比较字符串 II 中文English One string is strictly smaller than another when the frequency of occurrence of the smallest character in the string is less than the frequency of occurrence of the smallest character in the comparison string.For example,str

  • LeetCode——387.字符串中的第一个唯一字符2020-12-23 10:31:26

    一、题目 给定一个字符串,找到它的第一个不重复的字符,并返回它的索引。如果不存在,则返回 -1。 示例: s = “leetcode” 返回 0 s = “loveleetcode” 返回 2 提示:你可以假定该字符串只包含小写字母。 二、java解法 1.遍历两遍哈希表 class Solution { public int firstUniq

  • LeetCode #1636. Sort Array by Increasing Frequency2020-12-04 09:33:19

    题目 1636. Sort Array by Increasing Frequency 解题方法 先用collections.Counter计算频数存入字典,然后用sorted方法对字典中的键根据值顺序排序,第二关键字设置为键的倒序,返回一个元组组成的列表temp,其中每个元组的第一位是成员值,第二位是成员出现的次数,从头至尾遍历temp写元素

  • leetcode-895 Maximum Frequency Stack2020-11-06 11:01:17

    Implement FreqStack, a class which simulates the operation of a stack-like data structure. FreqStack has two functions:   push(int x), which pushes an integer x onto the stack.    pop(), which removes and returns the most frequent element in the stack

  • java 从零开始手写 redis(十)缓存淘汰算法 LFU 最少使用频次2020-10-07 07:01:16

    前言 java从零手写实现redis(一)如何实现固定大小的缓存? java从零手写实现redis(三)redis expire 过期原理 java从零手写实现redis(三)内存数据如何重启不丢失? java从零手写实现redis(四)添加监听器 java从零手写实现redis(五)过期策略的另一种实现思路 java从零手写实现redis(六)AOF 持久化原

  • DSP - Practical Introduction to Time-Frequency Analysis2020-07-27 22:03:30

      ntroduction In practical applications, many signals are nonstationary. This means that their frequency-domain representation (their spectrum) changes over time.  You can divide almost any time-varying signal into time intervals short enough that the sig

  • 【迭代式开发v1】实际去建Web前端页面所需的数据库(以前只是设计)+Web后端部分代码实现——大数据开发实战项目(八)2020-06-17 11:01:32

    目录一、大家一起完成的部分二、分工部分1、张志浩、赵磊:实际去建Web前端页面所需的数据库(以前只是设计,并没有实际建表)1.1、数据库设计:1.2、数据库连接工具1.3、实现:1.4、sql建表语句举例:2、王阔:Web后端部分代码实现(注:未完成终端属性模块的类与方法设计:TerminalAttributes)

  • 5G NR 频率和频点换算2020-04-20 16:39:45

    Basic Conception: RF Radio Frequency FR Frequency Range  FR1:450MHz-6GHz FR2:24.25GHz-52.6GHz RF Reference Frequency NR Absolute Radio Frequency Channel Number (NR-ARFCN) UE channel bandwidth supports a single NR RF carrier in the up

  • 班课22020-03-17 19:51:08

    1. 用spatial filters处理图片边缘部分时,由于没有足够的邻居所以需要补齐,方法有 a) zero:用0补齐 b) constant:用一个特定的值补齐 c) clamp:重复边缘上的值 d) wrap:从相反方向copy e) mirror:镜像copy,把边界下面的一行翻上去 2. 傅里叶变化核心思想:任何一个单变量函数都可以被一

  • 获取STM32系列APB1/APB2/HCLK/SYSCLK系统时钟频率使用J-Link-RTT打印2020-03-14 09:36:42

    获取STM3F10x系列系统各时钟频率@[TOC](获取STM3F10x系列系统各时钟频率)一、获取系统各时钟频率二、时钟频率显示结果三、RCC_GetSYSCLKSource()源码四、RCC_GetClocksFreq()源码 在STM32F10x系列库函数stm32f10x_rcc.c中有函数void RCC_GetClocksFreq(RCC_ClocksTypeDef

  • CVPR2020:Learning in the Frequency Domain(翻译)(二)2020-03-13 09:09:08

    图像分析新方法:“频域学习”(Learning in the Frequency Domain) 就是省略图像压缩/解压缩中计算量最大的步骤,直接利用频域特征来进行图像推理,减少系统中模块之间的数据传输量,从而提升系统性能。输入的数据量更小,深度神经网络在图像分类/分割任务上的精度反而提升了。 论文地址:h

  • How to Measure the High Frequency Fluorescent Lamp2020-02-21 18:38:26

    High frequency fluorescent lamp came out in 1990. Fine tube, small current and high power is the distinct features. Because of the above design structure, high frequency current working, electronic ballast with low power consumption, the work system of th

  • Python数据分析(7)----Apple公司股价数据分析2020-02-04 21:08:07

    本次实验内容为餐饮订单数据的分析,数据请见:https://pan.baidu.com/s/1tL7FE5lxs-gb6Phf8XRu_Q,文件夹:data_analysis,下面的文件:appl_1980_2014.csv 本次实验主要是对python中的数据进行基本操作。 代码为: #!/usr/bin/env python # -*- coding:utf-8 -*- import pandas as pd

  • [刷题] 统计首位数2020-01-29 23:01:09

    练习1:统计从1到100的阶乘中,1到9做首位的次数 Python import matplotlib.pyplot as plt def first_digital(x): while x >= 10: x //= 10 return x if __name__ == '__main__': n = 1 frequency = [0]*9 for i in range(1,100): n *= i

  • c++实验12020-01-24 18:00:10

    .定义一个CPU类,包含等级(rank)、频率(frequency)、电压(voltage)等属性,有两个公有成员函数run、stop。其中,rank为枚举类型CPU_Rank,定义为enum CPU_Rank{P1=1,P2,P3,P4,P5,P6,P7},frequency为单位是MHz的整型数,voltage为浮点型的电压值。观察构造函数和析构函数的调用顺序. #include <ios

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

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

ICode9版权所有