码迷,mamicode.com
首页 >  
搜索关键字:tco    ( 5870个结果
93. 复原IP地址
/** * Note: The returned array must be malloced, assume caller calls free(). */ #define MAX_IP_ADR 1000 #if 0 int IsValid(char* s, int i, int j) { int ...
分类:其他好文   时间:2020-12-01 12:10:43    阅读次数:10
LeetCode #1287. Element Appearing More Than 25% In Sorted Array
###题目 1287. Element Appearing More Than 25% In Sorted Array ###解题方法 遍历数组,找到出现次数最多的那个数即可。 时间复杂度:O(n) 空间复杂度:O(1) ###代码 class Solution: def findSpecialIn ...
分类:移动开发   时间:2020-11-30 15:53:35    阅读次数:10
【leetcode】1534. 统计好三元组
int countGoodTriplets(int* arr, int arrSize, int a, int b, int c){ int i, j, k, cnt=0; for(i=0; i<arrSize-2; i++){ for(j=i+1; j<arrSize-1; j++){ if(ab ...
分类:其他好文   时间:2020-11-27 11:50:07    阅读次数:24
如何使用eclipse使用Maven
如何使用eclipse使用Maven Maven Eclipse Eclipse 提供了一个很好的插件 m2eclipse ,该插件能将 Maven 和 Eclipse 集成在一起。 在最新的 Eclipse 中自带了 Maven,我们打开,Windows->Preferences,如果会出现下面的 ...
分类:系统相关   时间:2020-11-26 15:03:00    阅读次数:7
Dubbo实现原理浅析
参考: https://blog.csdn.net/paul_wei2008/article/details/19355681 https://blog.csdn.net/ygl19920119/article/details/88342523 Dubbo基本原理机制 分布式服务框架: –高性能和透 ...
分类:其他好文   时间:2020-11-26 14:10:33    阅读次数:3
从 3.1 到 5.0 —— OpenReservation 更新记
OpenReservation 从 asp.net core 3.1 升级到 5.0 ...
分类:其他好文   时间:2020-11-25 12:56:39    阅读次数:3
leetcode_28:实现 strStr()
实现 strStr() 函数。 给定一个 haystack 字符串和一个 needle 字符串,在 haystack 字符串中找出 needle 字符串出现的第一个位置 (从0开始)。如果不存在,则返回 -1。 示例 1: 输入: haystack = "hello", needle = "ll" ...
分类:其他好文   时间:2020-11-25 12:19:34    阅读次数:5
leetcode_20.:有效的括号
给定一个只包括 '(',')','{','}','[',']' 的字符串,判断字符串是否有效。 有效字符串需满足: 左括号必须用相同类型的右括号闭合。 左括号必须以正确的顺序闭合。 注意空字符串可被认为是有效字符串。 示例 1: 输入: "()" 输出: true 示例 2: 输入: "()[]{} ...
分类:其他好文   时间:2020-11-24 12:14:38    阅读次数:7
Leetcode(Daily 11-8 ~ 11-14)
leetcode(daily 11-8 ~ 11-14) leetcode 每日一题 11-8 122. 买卖股票的最佳时机 II class Solution { public int maxProfit(int[] prices) { // 贪心算法:只要今天买明天赚就买入 // profit用 ...
分类:其他好文   时间:2020-11-20 12:09:49    阅读次数:9
PHP通过DOMDocument对象来抓取网页中的指定class的内容
<?php function getTagClassContent($url, $tagName, $className) //要抓取的网页, 要抓取的Tag名, 要抓取的Class名 { $doc = new DOMDocument(); @$doc->loadHTML(file_get_cont ...
分类:Web程序   时间:2020-11-20 12:00:20    阅读次数:20
5870条   上一页 1 ... 15 16 17 18 19 ... 587 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!