03 2017 档案
摘要:原题链接在这里:https://leetcode.com/problems/relative-ranks/#/description 题目: Given scores of N athletes, find their relative ranks and the people with the t
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/base-7/#/description 题目: Given an integer, return its base 7 string representation. Example 1: Example 2: Note:
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/next-greater-element-ii/ 题目: Given a circular array (the next element of the last element is the first element o
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/next-greater-element-i/description/ 题目: You are given two arrays (without duplicates) nums1 and nums2 where nums
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/keyboard-row/#/description 题目: Given a List of words, return the words that can be typed using letters of alphab
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/validate-ip-address/#/description 题目: Write a function to check whether an input string is a valid IPv4 address
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/132-pattern/ 题目: Given a sequence of n integers a1, a2, ..., an, a 132 pattern is a subsequence ai, aj, ak such
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/4sum-ii/?tab=Description 题目: Given four lists A, B, C, D of integer values, compute how many tuples (i, j, k, l)
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/longest-palindromic-subsequence/ 题目: Given a string s, find the longest palindromic subsequence's length in s. Y
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/all-oone-data-structure/?tab=Description 题目: Implement a data structure supporting the following operations: Cha
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/delete-node-in-a-bst/?tab=Description 题目: Given a root node reference of a BST and a key, delete the node with t
阅读全文