文章
leetcode61 Rotate List
题目要求<pre<codeGivenalist,rotatethelisttotherightbykplaces,wherekisnonnegative.Forexample:Given1>2>3>4>5&
[LeetCode] Walls and Gates
WallsandGates<blockquote<pYouaregivenamxn2Dgridinitializedwiththesethreepossiblevalues.</p<p1Awalloranobstacle.0
[LeetCode] Minimum Path Sum
MinimumPathSum<blockquote<pGivenamxngridfilledwithnonnegativenumbers,findapathfromtoplefttobottomrightwhichminimizest
[LeetCode] Shortest Distance from All Buildings
ShortestDistancefromAllBuildings<blockquote<pGivena2Dgrid,eachcelliseitherawall2,anhouse1orempty0(thenumberzero,one,
[LeetCode] 01 Matrix
01Matrix<blockquote<pGivenamatrixconsistsof0and1,findthedistanceofthenearest0foreachcell.</p<pThedistancebetweentwo
[LeetCode] Convert Sorted List to Binary Search Tree
ConvertSortedListtoBinarySearchTree<blockquote<pGivenasinglylinkedlistwhereelementsaresortedinascendingorder,convertitto
[LeetCode] Serialize and Deserialize Binary Tree
SerializeandDeserializeBinaryTree<blockquote<pSerializationistheprocessofconvertingadatastructureorobjectintoasequenceofbi
leetcode56 Merge Intervals
题目要求<pre<codeGivenacollectionofintervals,mergealloverlappingintervals.Forexample,Given1,3,2,6,8,10,15,18,return1,6,
[LeetCode]Construct Binary Tree from Preorder Inorder Traversal
ConstructBinaryTreefromPreorderandInorderTraversal<blockquote<pGivenpreorderandinordertraversalofatree,constructthebinarytr
[LeetCode] Spiral Matrix
SpiralMatrix<blockquote<pGivenamatrixofmxnelements(mrows,ncolumns),returnallelementsofthematrixinspiralorder.</p</block
已加载文章中没有匹配内容,试试其他关键词或清空搜索。