码迷,mamicode.com
首页 >  
搜索关键字:given n integers    ( 24278个结果
【刷题-LeetCode】190 Reverse Bits
Reverse Bits Reverse bits of a given 32 bits unsigned integer. Example 1: Input: 00000010100101000001111010011100 Output: 0011100101111000001010010100 ...
分类:其他好文   时间:2020-07-13 11:35:53    阅读次数:58
1512. Number of Good Pairs
Given an array of integers nums. A pair (i,j) is called good if nums[i] == nums[j] and i < j. Return the number of good pairs. Example 1: Input: nums ...
分类:其他好文   时间:2020-07-13 09:59:42    阅读次数:75
[LeetCode] 1512. Number of Good Pairs
Given an array of integers nums. A pair (i,j) is called good if nums[i] == nums[j] and i < j. Return the number of good pairs. Example 1: Input: nums ...
分类:其他好文   时间:2020-07-13 09:57:03    阅读次数:63
1513. Number of Substrings With Only 1s
Given a binary string s (a string consisting only of '0' and '1's). Return the number of substrings with all characters 1's. Since the answer may be t ...
分类:其他好文   时间:2020-07-13 09:56:37    阅读次数:68
[LeetCode] 1513. Number of Substrings With Only 1s
Given a binary string s (a string consisting only of '0' and '1's). Return the number of substrings with all characters 1's. Since the answer may be t ...
分类:其他好文   时间:2020-07-13 09:45:45    阅读次数:61
0190. Reverse Bits (E)
Reverse Bits (E) 题目 Reverse bits of a given 32 bits unsigned integer. Example 1: Input: 00000010100101000001111010011100 Output: 001110010111100000101 ...
分类:其他好文   时间:2020-07-13 09:14:55    阅读次数:56
Weekly Contest 197
周赛地址(英):weekly contest 197 周赛地址(中):第 197 场周赛 仓库地址:week-Leetcode 1512. Number of Good Pairs Given an array of integers nums. A pair (i,j) is called goo ...
分类:其他好文   时间:2020-07-12 22:23:56    阅读次数:56
1109 Group Photo (25分)
Formation is very important when taking a group photo. Given the rules of forming K rows with N people as the following: The number of people in each ...
分类:其他好文   时间:2020-07-12 18:52:52    阅读次数:63
Pku3468 A Simple Problem with Integers
You have N integers, A1, A2, ... , AN. You need to deal with two kinds of operations. One type of operation is to add some given number to each number ...
分类:其他好文   时间:2020-07-12 18:48:43    阅读次数:50
回文检查器
最近在刷 freeCodeCamp 上面的题目,遂想着把一些 js 的题目记录下来。 原题: JavaScript Algorithms and Data Structures Projects: Palindrome Checker Return true if the given string ...
分类:其他好文   时间:2020-07-12 15:05:44    阅读次数:70
24278条   上一页 1 ... 19 20 21 22 23 ... 2428 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!