[Leetcode] Pascal's Triangle II 杨辉三角 Pascal's Triangle II Given an index k, return the kth row of the Pascal's triangle. For example, given k = 3, Return [1,
[Leetcode] Backtracking回溯法(又称DFS,递归)全解 回溯全集回溯是啥用爬山来比喻回溯,好比从山脚下找一条爬上山顶的路,起初有好几条道可走,当选择一条道走到某处时,又有几条岔道可供选择,只能选择其中一条道往前走,若能这样子顺利爬上山顶则罢了,否则走到一条绝路上时,只好返回到最近的一个路口,重新
Sort Solors 解题思路 原文 : https://github.com/kbyyd24/bl...题目先把题目放上:链接:https://leetcode.com/problems...Given an array with n objects colored r
[Leetcode] Largest Number Largest Number Given a list of non negative integers, arrange them such that they form the largest number. For example,
[Leetcode] First Missing Positive First Missing PositiveGiven an unsorted integer array, find the first missing positive integer.For example,Given [1,2,0]
[Leetcode] Permutation Sequence Paint FenceThe set [1,2,3,…,n] contains a total of n! unique permutations.By listing and labeling all of the permutation
[Leetcode] Design Tic-Tac-Toe 设计精子游戏 Design Tic-Tac-ToeDesign a Tic-tac-toe game that is played between two players on a n x n grid.You may assume the follow
[Leetcode] Bulls and Cows 猜数字 Bulls and CowsYou are playing the following Bulls and Cows game with your friend: You write down a number and ask your f
[Leetcode] ZigZag Conversion 波浪形打印字符串 ZigZag ConversionThe string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you ma
[Leetcode] Paint Fence 栅栏涂色 Paint FenceThere is a fence with n posts, each post can be painted with one of the k colors.You have to paint all the po