摘要:
一、题意 You are given a string s containing lowercase letters and an integer k. You need to : First, change some characters of s to other lowercase Engli 阅读全文
摘要:
一、题意 A supply chain is a network of retailers(零售商), distributors(经销商), and suppliers(供应商)-- everyone involved in moving a product from supplier to cus 阅读全文
摘要:
一、题意 A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties: The left subtree of a node contains only n 阅读全文
摘要:
一、题意 Given an array of integers, return the maximum sum for a non-empty subarray (contiguous elements) with at most one element deletion. In other wor 阅读全文
摘要:
一、题意 Given a string s, we make queries on substrings of s. For each query queries[i] = [left, right, k], we may rearrange the substring s[left], ..., 阅读全文
摘要:
一、题意 A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties: The left subtree of a node contains only n 阅读全文
摘要:
一、题意 Given any permutation of the numbers {0, 1, 2,..., N−1}, it is easy to sort them in increasing order. But what if Swap(0, *) is the ONLY operatio 阅读全文
摘要:
一、题意 In graph theory, an Eulerian path is a path in a graph which visits every edge exactly once. Similarly, an Eulerian circuit is an Eulerian path w 阅读全文
摘要:
一、题意 There is a classical process named partition in the famous quick sort algorithm. In this process we typically choose one element as the pivot. Th 阅读全文