码迷,mamicode.com
首页 >  
搜索关键字:given n integers    ( 24278个结果
PAT Advanced 1050 String Subtraction (20) [Hash散列]
题目 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
PAT Advanced 1038 Recover the Smallest Number (30分)
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
240. Search a 2D Matrix II
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
Educational Codeforces Round 80 (Rated for Div. 2) D. Minimax Problem
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
【leetcode】1328. Break a Palindrome
题目如下: 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
leetcode 1 Two Sum
题目内容 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
【PAT甲级】1103 Integer Factorization (30分)
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
【leetcode】1329. Sort the Matrix Diagonally
题目如下: 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
【leetcode】1331. Rank Transform of an Array
题目如下: 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
24278条   上一页 1 ... 84 85 86 87 88 ... 2428 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!