码迷,mamicode.com
首页 >  
搜索关键字:non-negative    ( 2271个结果
C# 写 LeetCode Medium #2 Add Two Numbers
2. Add Two Numbers You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse orderand each of ...
分类:Windows程序   时间:2018-12-21 00:00:20    阅读次数:266
K Closest In Sorted Array - Medium
Given a target integer T, a non-negative integer K and an integer array A sorted in ascending order, find the K closest numbers to T in A. Assumptions ...
分类:其他好文   时间:2018-12-16 15:20:39    阅读次数:149
445. Add Two Numbers II - Medium
You are given two non-empty linked lists representing two non-negative integers. The most significant digit comes first and each of their nodes contai ...
分类:其他好文   时间:2018-12-15 10:28:30    阅读次数:167
[LeetCode&Python] Problem 746. Min Cost Climbing Stairs
On a staircase, the i-th step has some non-negative cost cost[i] assigned (0 indexed). Once you pay the cost, you can either climb one or two steps. Y ...
分类:编程语言   时间:2018-12-12 18:54:40    阅读次数:204
189. Rotate Array - Easy
Given an array, rotate the array to the right by k steps, where k is non-negative. Example 1: Input: [1,2,3,4,5,6,7] and k = 3 Output: [5,6,7,1,2,3,4] ...
分类:其他好文   时间:2018-12-09 10:43:22    阅读次数:140
1095. Maximum Swap —— Weekly Challenge
题目限定输入是[0, 10^8],因而不用考虑负数或者越界情况,算是减小了难度。 1 public class Solution { 2 /** 3 * @param num: a non-negative intege 4 * @return: the maximum valued number ...
分类:其他好文   时间:2018-12-05 21:46:24    阅读次数:188
LeetCode 415. Add Strings
Given two non negative integers num1 and num2 represented as string, return the sum of num1 and num2. Note: + The length of both num1 and num2 is =0; ...
分类:其他好文   时间:2018-12-04 22:38:04    阅读次数:244
LeetCode 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 one ...
分类:其他好文   时间:2018-12-03 23:02:27    阅读次数:218
119. Pascal's Triangle II - Easy
Given a non-negative index k where k ≤ 33, return the kth index row of the Pascal's triangle. Note that the row index starts from 0. In Pascal's trian ...
分类:其他好文   时间:2018-12-02 19:22:23    阅读次数:149
530. Minimum Absolute Difference in BST
Given a binary search tree with non-negative values, find the minimum absolute difference between values of any two nodes. Example: Input: 1 \ 3 / 2 O ...
分类:其他好文   时间:2018-12-01 13:24:40    阅读次数:169
2271条   上一页 1 ... 22 23 24 25 26 ... 228 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!