码迷,mamicode.com
首页 >  
搜索关键字:given n integers    ( 24278个结果
HDU6799 Parentheses Matching(贪心/括号匹配)
Given a string P consisting of only parentheses and asterisk characters (i.e. "(", ")" and ""), you are asked to replace all the asterisk characters i ...
分类:其他好文   时间:2020-07-29 12:38:40    阅读次数:208
按需取余
CF 1374A. Required Remainder You are given three integers x,y and n. Your task is to find the maximum integer k such that 0≤k≤n that kmodx=y, where mo ...
分类:其他好文   时间:2020-07-29 10:29:20    阅读次数:63
0621. Task Scheduler (M)
Task Scheduler (M) 题目 You are given a char array representing tasks CPU need to do. It contains capital letters A to Z where each letter represents a ...
分类:其他好文   时间:2020-07-29 10:27:27    阅读次数:69
712. Minimum ASCII Delete Sum for Two Strings
Given two strings s1, s2, find the lowest ASCII sum of deleted characters to make two strings equal. Example 1: Input: s1 = "sea", s2 = "eat" Output: ...
分类:其他好文   时间:2020-07-28 14:45:21    阅读次数:310
Leetcode.283 | Move Zeroes(Python)
Leetcode.283 Move Zeroes Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero e ...
分类:编程语言   时间:2020-07-28 14:38:35    阅读次数:91
583. Delete Operation for Two Strings
Given two words word1 and word2, find the minimum number of steps required to make word1 and word2 the same, where in each step you can delete one cha ...
分类:其他好文   时间:2020-07-28 14:04:15    阅读次数:77
Easy Construction
题目描述 Roundgod is given n,k,construct a permutation P of 1~n satisfying that for all integers i in [1,n],there exists a contiguous subarray in P of len ...
分类:其他好文   时间:2020-07-28 00:18:40    阅读次数:75
[LeetCode 1530] Number of Good Leaf Nodes Pairs
Given the root of a binary tree and an integer distance. A pair of two different leaf nodes of a binary tree is said to be good if the length of the s ...
分类:其他好文   时间:2020-07-27 15:58:17    阅读次数:93
[LeetCode 1526] Minimum Number of Increments on Subarrays to Form a Target Array
Given an array of positive integers target and an array initial of same size with all zeros. Return the minimum number of operations to form a target  ...
分类:其他好文   时间:2020-07-27 15:38:31    阅读次数:66
[CF从零单排#13]122A - Lucky Division
题目来源: http://codeforces.com/problemset/problem/122/A Petya loves lucky numbers. Everybody knows that lucky numbers are positive integers whose decimal ...
分类:其他好文   时间:2020-07-27 13:40:27    阅读次数:64
24278条   上一页 1 ... 14 15 16 17 18 ... 2428 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!