Serialization is the process of converting a data structure or object into a sequence of bits so that i…
分类:LeetCode题目解答
31. 数组划分
题目 31. 数组划分 给出一个整数数组 nums 和一个整数 k。划分数组(即移动数组 nums 中的元素),使得: 所有小于k的元素移到左边 所有大于等于k的元素移到右边 返回数组划分的位置,即数组中第一个位置 i,…
[LeetCode] Valid Perfect Square 检验完全平方数
Given a positive integer num, write a function which returns True if num is a perfect square else False…
[LeetCode] Valid Word Abbreviation 验证单词缩写
Given a non-empty string s and an abbreviation abbr, return whether the string…
[LeetCode] Validate IP Address 验证IP地址
In this problem, your job to write a function to check whether a input string is a valid IPv4 address o…
LeetCode | Triangle
题目: Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers…
[Leetcode] Largest Number 最大整数
Largest Number Given a list of non negative integers, arrange them such that they form the largest number. For…
LeetCode 总结
LeetCode 方法详解
[LeetCode] Merge Sorted Array 混合插入有序数组
Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1&n…
[LeetCode] Paint Fence 粉刷篱笆
There is a fence with n posts, each post can be painted with one of the k colors. You have to pai…
[LeetCode] Longest Uncommon Subsequence I 最长非共同子序列之一
Given a group of two strings, you need to find the longest uncommon subsequence of this group of two st…
LeetCode | Merge k Sorted Lists
题目: Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complex…