文章
我眼中的算法导论 | 第一章——算法在计算中的作用、第二章——算法基础
一个小白的算法学习之路。读《算法导论》第一天。本文仅作为学习的心得记录。算法(Algorithm)对于一个程序员来说,无论资历深浅,对算法一词的含义一定会或多或少有自己的体会,在《算法导论》中,作者在第一章就将算法定义为一种计算过程。我们第一次遇到算法,首先关心的必
leetcode 383. Ransom Note
<blockquote<p<strong前记</strong</p<p360三面已过,后接能力测评,一切都没感觉有何异样,然而并没有收到offer,躺在了所谓的offer池(备胎池)中,甚是伤感,只能说他皮任他皮,我刷我的题~</p</blockquoteD
leetcode 350. Intersection of Two Arrays II
DescriptionGiventwoarrays,writeafunctiontocomputetheirintersection.<pre<codeExample:Givennums11,2,2,1,nums22,2,r
leetcode 349. Intersection of Two Arrays
DescriptionGiventwoarrays,writeafunctiontocomputetheirintersection.Example:Givennums11,2,2,1,nums22,2,return2.N
leetcode 344. Reverse String
DescriptionWriteafunctionthattakesastringasinputandreturnsthestringreversed.Example:Givens&34;hello&34;,return&34;olleh&
leetcode 342. Power of Four
DescriptionGivenaninteger(signed32bits),writeafunctiontocheckwhetheritisapowerof4.<pre<codeExample:Givennum16,return
堆排序
数据结构 一个堆是一个完全二叉树,如下图所示。每个节点的值小于等于其子节点的值,最小值在根节点。 !堆(/img/bVT2VX?w684&h280)堆使用的是下标从1开始的数组,常用的函数定义有:root1valueixi
leetcode 一些算法题目记录
前言!图片描述(/img/bVT2JE?w1992&h1310)原文地址(https://link.segmentfault.com/?encdaI%2FNH1z3M4mMHVRtai0ew%3D%3D.ML6Ex5AxUFjM7emrcOpQo%2Fe4k%
leetcode 278. First Bad Version
DescriptionYouareaproductmanagerandcurrentlyleadingateamtodevelopanewproduct.Unfortunately,thelatestversionofyourproductfa
leetcode 258. Add Digits
DescriptionGivenanonnegativeintegernum,repeatedlyaddallitsdigitsuntiltheresulthasonlyonedigit.Forexample:Givennum38,t
已加载文章中没有匹配内容,试试其他关键词或清空搜索。