文章
【Leetcode】120.三角形最小路径和
题目给定一个三角形,找出自顶向下的最小路径和。每一步只能移动到下一行中相邻的结点上。例如,给定三角形:<pre<code2,3,4,6,5,7,4,1,8,3</code</pre自顶向下的最小路径和为11
用JavaScript实现插入排序
<blockquote翻译:疯狂的技术宅<br/<ahref"https://link.segmentfault.com/?encIDVegGEapg6aAe49B4txZw%3D%3D.pLv%2Bwdc9OP0ivNz1gU8OG5sqJtOruxlqb85kkIZkHyMVijsH4
编译原理学习一,去除代码中的注释
前言开始学习编译原理了耶~关于编译原理的所有练习,按照老规矩,还是用我最喜欢的C语言来实现,运行在.NetCore平台上~关于这个系列的所有代码已经上传到github了,项目主页:<blockquote<ahref"https://link.segmentfault.com
Leetcode PHP题解--D58 693. Binary Number with Alternating Bits
D58693.BinaryNumberwithAlternatingBits题目链接693.BinaryNumberwithAlternatingBits(https://link.segmentfault.com/?enci6aWKD6Xzn
高频算法面试题(数组)leetcode 169. 求众数
leetcode169.求众数给定一个大小为n的数组,找到其中的众数。众数是指在数组中出现次数大于⌊n/2⌋的元素。你可以假设数组是非空的,并且给定的数组总是存在众数。示例1:<pre<code输入:3,2,3输出:3</code</pre
Leetcode PHP题解--D57 762. Prime Number of Set Bits in ...
D57762.PrimeNumberofSetBitsinBinaryRepresentation题目链接762.PrimeNumberofSetBitsinBinaryRepresentation(https://link.segm
Leetcode PHP题解--D56 637. Average of Levels in Binary Tree
D56637.AverageofLevelsinBinaryTree题目链接637.AverageofLevelsinBinaryTree(https://link.segmentfault.com/?encosIQDQ4pxxX3otfF
leetCode第一题
<blockquoteleetCode第一题</blockquote普通解决思路将数组变量两次,相加判断是否等于传过来的值,如果等于,返回下标自己写的代码,如果有错误请指出,谢谢<pre<codepackagecom.leetcode.firstquestion.
Leetcode PHP题解--D55 429. N-ary Tree Level Order Traversal
D55429.NaryTreeLevelOrderTraversal题目链接429.NaryTreeLevelOrderTraversal(https://link.segmentfault.com/?encKWjLyO4Bvb06Afwi
深入理解CAS算法原理
1、什么是CAS?CAS:CompareandSwap,即比较再交换。jdk5增加了并发包java.util.concurrent.,其下面的类使用CAS算法实现了区别于synchronouse同步锁的一种乐观锁。JDK5之前Java语言是靠synchronized关键字
已加载文章中没有匹配内容,试试其他关键词或清空搜索。