- 2024-11-01Study Guide v2.1
目录1.DataStructuresandAlgorithms1.1.LearningSuggestions:Howtolearnalgorithms?1.2.LearningMaterialList1.2.1.Booksrecommended1.2.2.Websites1.3.SubjectMatterDetails1.3.1.AboutAlgorithms1.3.1.1.Whatarealgorithms?1.3.1.2.Howdoweanaly
- 2024-06-12一个开源且全面的C#算法实战教程
前言算法在计算机科学和程序设计中扮演着至关重要的角色,如在解决问题、优化效率、决策优化、实现计算机程序、提高可靠性以及促进科学融合等方面具有广泛而深远的影响。今天大姚给大家分享一个开源、免费、全面的C#算法实战教程:TheAlgorithms/C-Sharp。C#经典十大排序算法(完结)
- 2024-05-14[Algorithm] Prim's Algorithm
Prim'salgorithmisapopularmethodusedincomputerscienceforfindingaminimumspanningtreeforaconnected,undirectedgraph.Thismeansitfindsasubsetoftheedgesthatformsatreethatincludeseveryvertex,wherethetotalweightofall
- 2024-04-1152 Things: Number 4: The Complexity Class P
52Things:Number4:TheComplexityClassP52件事:数字4:复杂度等级PThisisthefourthblogposttalkingabout '52ThingsEveryPhDStudentShouldKnow' todoCryptography,andthefirstonthetopicofTheoreticalComputerScience.Inthispost,
- 2024-04-07研发规范杂谈
编码质量推荐工具检测插件名称作用建议程度IDEA自带插件(IDEAAnalyze)编译器警告强制SonarLint代码质量检查强制CodeMetric代码复杂度提醒建议MetricsReloaded代码复杂度计算建议AlibabaJavaCodingGuidelines代码规范建议/部分规范不建议
- 2024-03-28Time Complexity
BelowcontentsaregeneratebyChatGpt:Timecomplexityisanimportantmetricformeasuringalgorithmperformance,describingtherelationshipbetweenthetimeanalgorithmtakestoexecuteandthesizeoftheproblem.Typically,weusethebigOnotatio
- 2024-01-18KY109 Zero-complexity Transposition C
用数组倒序输出就行了。#include<stdio.h>#include<stdlib.h>intmain(){intn;while(scanf("%d",&n)!=EOF){long*a=(long*)malloc(sizeof(long)*n);for(inti=0;i<n;i++){scanf("%d",&a[i]);
- 2024-01-18KY109 Zero-complexity TranspositionC++
h很简单的题目,不管是用数组还是用栈都非常简单。#include<iostream>#include<stack>usingnamespacestd;intmain(){intn;while(cin>>n){stack<long>s;while(n!=0){inttem;cin>>tem;
- 2024-01-10程序员建议指南
IDEA代码质量检查工具插件插件名称作用建议程度IDEA自带插件规范编译器警告强制SonarLint代码质量检查强制CodeMetric代码复杂度提醒建议MetricsReloaded代码复杂度计算建议AlibabaJavaCodingGuidelines代码规范建议/部分规范不建议代码
- 2023-12-21『LeetCode』1. 两数之和 Two Sum
『1』暴力法classSolution{//BruteForce//TimeComplexity:O(n^2)//SpaceComplexity:O(1)publicint[]twoSum(int[]nums,inttarget){for(inti=0;i<nums.length;i++){for(intj=i+1;j<nums.length
- 2023-08-18算法复杂度速查表
https://zhuanlan.zhihu.com/p/158694568目录目录1.背景2.Big-OComplexityChart3.CommonDataStructureOperations4.ArraySortingAlgorithms1.背景最近看到一篇总结算法复杂度的博客,原作者Eric是为了面试方便而总结出了一份算法复杂度速查表,在此转载一下
- 2023-08-12Know Thy Complexities!
https://www.bigocheatsheet.com/ KnowThyComplexities!Hithere! ThiswebpagecoversthespaceandtimeBig-OcomplexitiesofcommonalgorithmsusedinComputerScience. Whenpreparingfortechnicalinterviewsinthepast,Ifoundmyselfspendinghour
- 2023-06-25AGC033D Complexity
Ex-BowMeowOptimization当\(n,m\)都为偶数时,记狗的正中为\(x\)吗,猫的正中为\(y\)(正中在序列中就处于两个位置之间,不与任何位置重合)一只猫\(i\)到\(x\)隔了\(C\)只狗,那么这只猫对应的代价就为\(B_i\times(\fracn2+C-(\fracn2-C))=B_i\times2C\),狗的代价同理那么对于\(x\)
- 2023-04-25Exercises 1 in Statistical mechanics: entropy, order parameters, and complexity
这里记录一下一些在《Statisticalmechanics:entropy,orderparameters,andcomplexity》这本书的第一章中的一些比较有趣的题目。Q1ThereareMdiceeachwithNsides(labeledbyintegers)andateachturneverydiceisthrownindependentlyoneafteranother,and
- 2023-01-04什么是Cyclomatic Complexity(圈复杂度)?
CampwoodSoftware SourceMonitorVersion3.5ThefreewareprogramSourceMonitorletsyouseeinsideyoursoftwaresourcecodetofindouthowmuchcodeyouhav
- 2022-12-3101-复杂度(complexity)
什么是算法?算法是用于解决特定问题的一系列的执行步骤。如何判断一个算法的好坏?正确性、可读性、健壮性(对不合理输入的反应能力和处理能力)时间复杂度(timecomplex
- 2022-12-29computational complexity笔记
thecomputationalmodel最初的目标是构造一个计算的模型。这个模型可以看作一个集合,这个集合中的每个元素相当于某一个具体问题的解决方案,也就是一个“程序”;这个集合整
- 2022-12-082021, A Low-Complexity Deep Learning Framework For Acoustic Scene Classification
DOIhttps://doi.org/10.1007/978-3-658-36295-9_4
- 2022-12-01Time Complexity - PermMissingElem
QuestionAnarrayAconsistingofNdifferentintegersisgiven.Thearraycontainsintegersintherange[1..(N+1)],whichmeansthatexactlyoneelementis
- 2022-12-01Time Complexity - FrogJmp
QuestionAsmallfrogwantstogettotheothersideoftheroad.ThefrogiscurrentlylocatedatpositionXandwantstogettoapositiongreaterthanoreq
- 2022-11-09题解 AGC033D【Complexity】
problem定义一个0/1矩阵\(B\)的复杂度为:若\(B\)只由一种数字组成,其复杂度为\(0\)。否则,用一条平行于矩阵\(B\)任意一边的直线将\(B\)划分为两部分,则复杂度
- 2022-11-01react项目因为代码复杂度问题无法打包
项目中碰到个问题,后台返回数据为null,但是之前代码没有做null的判断,导致使用该数据里属性值时报错 很快,在代码中定位到报错字段,加上可选链操作符( ?.)时,代码编译运