Largest Number Given a list of non negative integers, arrange them such that they form the largest number. For…
分类:LeetCode
2018-07-14
693. 交替位二进制数 题目描述 给定一个正整数,检查他是否为交替位二进制数:换句话说,就是他的二进制数相邻的两个位数永不相等。 示例 1: 输入: 5 输出: True 解释: 5的二进制数是: 101 示例 2: …
binary-tree-level-order-traversal
描述: Given a binary tree, return the level order traversal of its nodes’ values. (ie, from left to right,…
Day13. Reverse String II(541)
问题描述 Given a string and an integer k, you need to reverse the first k characters for every 2k characters count…
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…
LeetCode 179 Largest Number
题目描述 Given a list of non negative integers, arrange them such that they form the largest number. For example, …
[Leetcode] Container With Most Water 最大盛水容器
Container With Most Water 最新更新请访问:https://yanjia.me/zh/2018/11/… Given n non-negative integers a1, a2, &…
69.Sqrt(x)-Leetcode
我的AC方法(暴力) class Solution { public: int mySqrt(int x) { int i=1; while(x/i>=i) i++; return i-1; } }; 最优解法 思…