码迷,mamicode.com
首页 >  
搜索关键字:divide two integers    ( 17573个结果
442. Find All Duplicates in an Array
Given an array of integers, 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once. Find all the elements that appear twi ...
分类:其他好文   时间:2020-01-24 12:08:31    阅读次数:78
521. Longest Uncommon Subsequence I
Given a group of two strings, you need to find the longest uncommon subsequence of this group of two strings. The longest uncommon subsequence is defi ...
分类:其他好文   时间:2020-01-24 10:50:25    阅读次数:98
[LeetCode 1167] Minimum Cost to Connect Sticks
You have some sticks with positive integer lengths. You can connect any two sticks of lengths X and Y into one stick by paying a cost of X + Y. You pe ...
分类:其他好文   时间:2020-01-24 09:32:12    阅读次数:90
4. Median of Two Sorted Arrays
There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity sh ...
分类:其他好文   时间:2020-01-23 22:59:05    阅读次数:154
刷题2. Add Two Numbers
一、题目要求 You are given two non empty linked lists representing two non negative integers. The digits are stored in reverse order and each of their nodes ...
分类:其他好文   时间:2020-01-23 12:26:54    阅读次数:77
凉脾的比赛
A - DRM Messages DRM Encryption is a new kind of encryption. Given an encrypted string (which we’ll call a DRM message), the decryption process involv ...
分类:其他好文   时间:2020-01-22 20:06:36    阅读次数:61
Graph题目总结【不定期更新】
Find minimal ops to convert one str to another Description Given two alphabet strings str1 and str2. You can change the characters in str1 to any alph ...
分类:其他好文   时间:2020-01-22 12:49:47    阅读次数:112
E - Arctic Network
E - Arctic Network The Department of National Defence (DND) wishes to connect several northern outposts by a wireless network. Two different communica ...
分类:Web程序   时间:2020-01-21 23:45:57    阅读次数:125
Codeforces Round #568 (Div. 2) F - Two Pizzas (状态压缩,暴力)
"?? ?? ??" 题意:每个顾客有几种想要的原料,每个披萨含有几种原料,问你买两块披萨,让最多的顾客全部吃到想要的原料,同时花最少的钱,需要买哪两块 原料只有九种,O(n^2) 枚举披萨 转换为(512 512) 枚举状态 ,买两个状态一样的跑一遍,买两个状态不一样的跑一遍 是被队友嫌弃的码风 ...
分类:其他好文   时间:2020-01-21 21:38:16    阅读次数:64
A Simple Problem with Integers-POJ3468
题意: 给你n个数和2个操作,C操作是将一个区间内的每个数都加上k,Q操作是询问一个区间的和 链接:http://poj.org/problem?id=3468 思路: 线段树区间修改+区间查询 代码: #include <iostream> #include <stdio.h> #include ...
分类:其他好文   时间:2020-01-21 20:09:42    阅读次数:82
17573条   上一页 1 ... 81 82 83 84 85 ... 1758 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!