码迷,mamicode.com
首页 >  
搜索关键字:leetcode easy    ( 39612个结果
LeetCode——852. 山脉数组的峰顶索引(Java)
题目描述 题干: 符合下列属性的数组 arr 称为 山脉数组 : arr.length >= 3 存在 i(0 < i < arr.length - 1)使得: arr[0] < arr[1] < ... arr[i-1] < arr[i] arr[i] > arr[i+1] > ... > arr ...
分类:编程语言   时间:2021-06-15 18:16:39    阅读次数:0
[LeetCode] 278. 第一个错误的版本
二分寻找边界 public class Solution extends VersionControl { public int firstBadVersion(int n) { int i = 1; int j = n; while (i<=j) { int mid = i + ((j-i)>>1 ...
分类:其他好文   时间:2021-06-15 18:12:30    阅读次数:0
[LeetCode] 1898. Maximum Number of Removable Characters
You are given two strings s and p where p is a subsequence of s. You are also given a distinct 0-indexed integer array removable containing a subset o ...
分类:其他好文   时间:2021-06-15 18:05:39    阅读次数:0
每日LeetCode - 125. 验证回文串(Python 3)
Python3 双指针 class Solution: def isPalindrome(self, s: str) -> bool: n = len(s) left, right = 0, n - 1 while left < right: while left < right and not s ...
分类:编程语言   时间:2021-06-13 10:55:47    阅读次数:0
7. 加一
加一 [原题链接](初级算法 - LeetBook - 力扣(LeetCode)全球极客挚爱的技术成长平台 (leetcode-cn.com)) 给定一个由 整数 组成的 非空 数组所表示的非负整数,在该数的基础上加一。 最高位数字存放在数组的首位, 数组中每个元素只存储单个数字。 你可以假设除了整 ...
分类:其他好文   时间:2021-06-13 10:24:49    阅读次数:0
leetcode 1283. 使结果不超过阈值的最小除数
给你一个整数数组 nums 和一个正整数 threshold ,你需要选择一个正整数作为除数,然后将数组里每个数都除以它,并对除法结果求和。 请你找出能够使上述结果小于等于阈值 threshold 的除数中 最小 的那个。 每个数除以除数后都向上取整,比方说 7/3 = 3 , 10/2 = 5 。 ...
分类:其他好文   时间:2021-06-13 10:24:06    阅读次数:0
LeetCode 目标和(28)(中等)
问题描述: 给你一个整数数组 nums 和一个整数 target 。 向数组中的每个整数前添加 '+' 或 '-' ,然后串联起所有整数,可以构造一个 表达式 : 例如,nums = [2, 1] ,可以在 2 之前添加 '+' ,在 1 之前添加 '-' ,然后串联起来得到表达式 "+2-1" 。 ...
分类:其他好文   时间:2021-06-13 09:56:52    阅读次数:0
[LeetCode] 系统刷题9_Backtracking
有待总结。 Binary Search: 633, Sum of Square Numbers 475, Heaters 744, Find Smallest Letter Greater than target(LC submissions from original session) 427?? ...
分类:其他好文   时间:2021-06-13 09:48:38    阅读次数:0
[LeetCode] 1877. Minimize Maximum Pair Sum in Array
The pair sum of a pair (a,b) is equal to a + b. The maximum pair sum is the largest pair sum in a list of pairs. For example, if we have pairs (1,5),  ...
分类:其他好文   时间:2021-06-13 09:41:48    阅读次数:0
[RoarCTF 2019]Easy Calc
点开题目,发现只是一个计算框 查看一下源代码 发现了一串代码 .ajax是指通过http请求加载远程数据 输入的算式会被传进calc.php文件中 且提示网页存在waf(就是防火墙) 访问cala.php试试 有一串php代码 1 <?php 2 error_reporting(0); 3 if(! ...
分类:其他好文   时间:2021-06-13 09:27:14    阅读次数:0
39612条   上一页 1 ... 4 5 6 7 8 ... 3962 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!