欢迎fork and star:Nowcoder-Repository-github 125. Valid Palindrome 题目 注意c/c++大小写的转换方法 c基本库函数isalnum(),tolower(),…
分类:LeetCode题目解答
[LeetCode] Flatten 2D Vector 压平二维向量
Implement an iterator to flatten a 2d vector. For example,Given 2d vector = [ [1,2], [3], [4,5,6] ] &nb…
[LeetCode] Two Sum IV - Input is a BST 两数之和之四 - 输入是二叉搜索树
Given a Binary Search Tree and a target number, return true if there exist two elements in the BST such…
[Leetcode] Wiggle Sort 摇摆排序
Wiggle Sort Given an unsorted array nums, reorder it in-place such that nums[0] <= nums[1] >= nums[2] &l…
[LeetCode] Binary Tree Level Order Traversal II 二叉树层序遍历之二
Given a binary tree, return the bottom-up level order traversal of its nodes’ values. (…
[LeetCode] Find Minimum in Rotated Sorted Array II 寻找旋转有序数组的最小值之二
Follow up for “Find Minimum in Rotated Sorted Array”:What if duplicates are allowed…
[LeetCode] Largest Palindrome Product 最大回文串乘积
Find the largest palindrome made from the product of two n-digit numbers. Since the result could be ver…
[LeetCode] Longest Palindromic Subsequence 最长回文子序列
Given a string s, find the longest palindromic subsequence’s length in s. You may assume that the…
LeetCode 273 Integer to English Words
题目描述 Convert a non-negative integer to its english words representation. Given input is guaranteed to be less …
[Leetcode] Remove Nth Node From End of List 移除倒数第N的节点
Remove Nth Node From End of List 最新更新的解法和思路:https://yanjia.me/zh/2018/11/… Given a linked list, remove t…
[Leetcode] Binary Search Tree Iterator 二叉搜素树迭代器
Binary Search Tree Iterator 最新更新:https://yanjia.me/zh/2019/02/… Implement an iterator over a binary sear…
88. Merge Sorted Array
88. Merge Sorted Array 题目 Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorte…