码迷,mamicode.com
首页 >  
搜索关键字:divide two integers    ( 17573个结果
【leetcode】1338. Reduce Array Size to The Half
题目如下: Given an array arr. You can choose a set of integers and remove all the occurrences of these integers in the array. Return the minimum size of t ...
分类:其他好文   时间:2020-02-08 15:25:57    阅读次数:69
HGAME2020 Week3 Writeup
签到成功 只求week4不要交白卷 Crypto Exchange 题目: Our admin hijacked a secret channel and it looks like there are two teams doing some unspeakable transactions. n ...
分类:其他好文   时间:2020-02-08 09:57:02    阅读次数:107
leetcode21 Merge Two Sorted Lists
1 """ 2 Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. ...
分类:其他好文   时间:2020-02-07 18:47:24    阅读次数:67
leetcode24 Swap Nodes in Pairs
1 """ 2 Given a linked list, swap every two adjacent nodes and return its head. 3 You may not modify the values in the list's nodes, only nodes itself ...
分类:其他好文   时间:2020-02-07 18:27:44    阅读次数:58
7-20 Binary Search Tree (25分)
A binary search tree is uniquely determined by a given ordered insertions of a sequence of positive integers. On the other hand, a given binary search ...
分类:其他好文   时间:2020-02-07 10:53:55    阅读次数:85
1047. Remove All Adjacent Duplicates In String
Given a string S of lowercase letters, a duplicate removal consists of choosing two adjacent and equal letters, and removing them. We repeatedly make ...
分类:其他好文   时间:2020-02-07 10:42:50    阅读次数:74
560. Subarray Sum Equals K
Given an array of integers and an integer k, you need to find the total number of continuous subarrays whose sum equals to k. Example 1: Input:nums = ...
分类:其他好文   时间:2020-02-07 00:48:28    阅读次数:65
494. Target Sum
You are given a list of non-negative integers, a1, a2, ..., an, and a target, S. Now you have 2 symbols + and -. For each integer, you should choose o ...
分类:其他好文   时间:2020-02-06 23:22:15    阅读次数:72
leetcode922 Sort Array By Parity II
1 """ 2 Given an array A of non-negative integers, half of the integers in A are odd, and half of the integers are even. 3 Sort the array so that when ...
分类:其他好文   时间:2020-02-06 23:03:15    阅读次数:84
leetcode349 350 Intersection of Two Arrays & II
1 """ 2 Intersection of Two Arrays 3 Given two arrays, write a function to compute their intersection. 4 Example 1: 5 Input: nums1 = [1,2,2,1], nums2 ...
分类:其他好文   时间:2020-02-06 23:00:09    阅读次数:74
17573条   上一页 1 ... 71 72 73 74 75 ... 1758 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!