题目 Given two strings S1 and S2, S = S1 – S2 is defined to be the remaining string afer taking all the characters in S2 from S1. Your task is simply to ...
分类:
其他好文 时间:
2020-01-28 21:02:59
阅读次数:
65
You are given an undirected graph consisting of nn vertices and mm edges. Your task is to find the number of connected components which are cycles. He ...
分类:
其他好文 时间:
2020-01-28 19:13:14
阅读次数:
152
Given a collection of number segments, you are supposed to recover the smallest number from them. For example, given { 32, 321, 3214, 0229, 87 }, we c ...
分类:
其他好文 时间:
2020-01-28 19:08:30
阅读次数:
82
Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties: Integers in each row are sorted i ...
分类:
其他好文 时间:
2020-01-28 17:32:43
阅读次数:
88
D. Minimax Problem time limit per test 5 seconds memory limit per test 512 megabytes input standard input output standard output You are given nn arra ...
分类:
其他好文 时间:
2020-01-28 12:28:41
阅读次数:
70
题目如下: Given a palindromic string palindrome, replace exactly one character by any lowercase English letter so that the string becomes the lexicographi ...
分类:
其他好文 时间:
2020-01-27 19:23:10
阅读次数:
72
题目内容 Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would ha ...
分类:
其他好文 时间:
2020-01-27 19:08:41
阅读次数:
65
1103 Integer Factorization (30分) The K ? P factorization of a positive integer N is to write N as the sum of the P th power of K positive integers. Yo ...
分类:
其他好文 时间:
2020-01-27 19:07:20
阅读次数:
76
题目如下: Given a m * n matrix mat of integers, sort it diagonally in ascending order from the top-left to the bottom-right then return the sorted array. ...
分类:
其他好文 时间:
2020-01-27 19:06:23
阅读次数:
72
题目如下: Given an array of integers arr, replace each element with its rank. The rank represents how large the element is. The rank has the following rul ...
分类:
其他好文 时间:
2020-01-27 19:03:33
阅读次数:
71