码迷,mamicode.com
首页 >  
搜索关键字:leetcode count prime    ( 54596个结果
Leetcode No.27 Remove Element(c++实现)
1. 题目 1.1 英文题目 Given an integer array nums and an integer val, remove all occurrences of val in nums in-place. The relative order of the elements may ...
分类:编程语言   时间:2021-06-25 17:23:46    阅读次数:0
关于oracle数据库性能监控指标
1. 当前连接会话数以及当前并发连接个数 -- 当前活跃用户会话数Select count(*) from v$session where status='ACTIVE' and USERNAME is not null;-- 当前活跃系统会话数Select count(*) from v$sess ...
分类:数据库   时间:2021-06-25 17:21:32    阅读次数:0
二叉树的递归解法
贴上大佬的博客地址:https://labuladong.gitee.io/algo/2/18/20/ 这一部分总得来说比较简单,注意边界值的判断就行了。下面是贴上实际的代码 """ 翻转二叉树 https://leetcode-cn.com/problems/invert-binary-tree/ ...
分类:其他好文   时间:2021-06-25 16:45:06    阅读次数:0
PHP--有4个数字:1、2、3、4,能组成多少个互不相同且不重复数字的三位数?各是多少
1 <?php 2 $str = '1234'; 3 $ar =str_split($str); 4 perm($ar, 0, count($ar)-1); 5 6 function perm(&$ar, $now, $length) { 7 if($now == $length){ 8 $str= ...
分类:Web程序   时间:2021-06-25 16:41:48    阅读次数:0
leetcode-python-二叉搜索树中第K小的元素
逐行入栈,排序后直接输出第k小的数据 # Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self. ...
分类:编程语言   时间:2021-06-25 16:32:21    阅读次数:0
linux限制文件夹大小
1、创建磁盘镜像文件 dd if= /dev/zero of=/xxx/xxx.img bs=xxxM count=xxx 2、挂载到dev losetup /dev/loopx(自定义一个loop 如 loop1、loop2) /xxx/xxx.img (刚才那个文件) 3、格式化一下挂载的loo ...
分类:系统相关   时间:2021-06-24 18:15:53    阅读次数:0
1. 两数之和
创建一个哈希表,对于每一个 \(nums[i]\),我们首先查询哈希表中是否存在 \(target - nums[i]\),然后将 \(nums[i]\) 插入到哈希表中,即可保证不会让 \(nums[i]\) 和自己匹配。 class Solution { public: vector<int> ...
分类:其他好文   时间:2021-06-23 17:05:08    阅读次数:0
MyISAM与InnoDB 的区别
区别:1. InnoDB支持事务,MyISAM不支持,对于InnoDB每一条SQL语言都默认封装成事务,自动提交,这样会影响速度,所以最好把多条SQL语言放在begin和commit之间,组成一个事务; 2. InnoDB支持外键,而MyISAM不支持。对一个包含外键的InnoDB表转为MYISAM ...
分类:数据库   时间:2021-06-23 16:38:54    阅读次数:0
数组中的第K个最大元素
https://leetcode-cn.com/problems/kth-largest-element-in-an-array/ 215. 数组中的第K个最大元素 在未排序的数组中找到第 k 个最大的元素。请注意,你需要找的是数组排序后的第 k 个最大的元素,而不是第 k 个不同的元素。 示例 1 ...
分类:编程语言   时间:2021-06-23 16:38:41    阅读次数:0
LeetCode395-至少有 K 个重复字符的最长子串
题目链接:https://leetcode-cn.com/problems/longest-substring-with-at-least-k-repeating-characters public class LeetCode395 { public static void main(String ...
分类:其他好文   时间:2021-06-23 16:28:48    阅读次数:0
54596条   上一页 1 ... 4 5 6 7 8 ... 5460 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!