码迷,mamicode.com
首页 >  
搜索关键字:lc    ( 989个结果
Lc_151翻转字符串里的单词
package com.leetcode.leetcode.licm; import org.apache.logging.log4j.util.Strings; /** * @description: /** * * 151. 翻转字符串里的单词 * * 给你一个字符串 s ,逐个翻转字符串中的所 ...
分类:其他好文   时间:2021-07-13 17:43:55    阅读次数:0
Cannot set LC_ALL to locale en_US.UTF-8: No such file or directory
报错如下: Cannot set LC_ALL to locale en_US.UTF-8: No such file or directory 解决方式: apt-get install -y locales locale-gen en_US.UTF-8 ...
分类:其他好文   时间:2021-06-24 18:14:03    阅读次数: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
Lc_78子集
package com.example.leetcode; import java.util.ArrayDeque; import java.util.ArrayList; import java.util.Deque; import java.util.List; /** * @descripti ...
分类:其他好文   时间:2021-05-24 04:04:16    阅读次数:0
Leetcode 1143. 最长公共子序列(LCS)动态规划
/* * @lc app=leetcode.cn id=1143 lang=cpp * * [1143] 最长公共子序列 * * https://leetcode-cn.com/problems/longest-common-subsequence/description/ * * algorith ...
分类:其他好文   时间:2021-04-23 12:08:02    阅读次数:0
Leetcode 126 127 单词接龙i&ii
i: /* * @lc app=leetcode.cn id=127 lang=cpp * * [127] 单词接龙 * * https://leetcode-cn.com/problems/word-ladder/description/ * * algorithms * Hard (45.95% ...
分类:其他好文   时间:2021-04-22 15:58:08    阅读次数:0
b_lc_单线程 CPU(堆)
有n个任务,且tasks[i] = [enqueueTimei, processingTimei] 意味着第 i?????????? 项任务将会于 enqueueTimei 时进入任务队列,需要 processingTimei 的时长完成执行。现有一个单线程 CPU ,同一时间只能执行 最多一项 任 ...
分类:编程语言   时间:2021-04-20 14:58:36    阅读次数:0
树(上半期)
树 建树 struct tr{ char x; tr*lc,*rc; }; #define nu NULL // 建树 tr* create() { tr*t ; char x;cin>>x; if(x=='#') { t=nu; }else{ t=new tr; t->x=x; t->lc=nu; ...
分类:其他好文   时间:2021-04-19 15:00:42    阅读次数:0
b_lc_最少侧跳次数(向前看dp)
给定一个长为n的数组A(n<5*10^5),A[i] (取值范围从 0 到 3)表示在点 i 处的 A[i] 跑道上有一个障碍。如果 A[i] == 0 ,那么点 i 处没有障碍。任何一个点的三条跑道中 最多有一个 障碍。求这只青蛙从点 0 处跑道 2 出发,并想到达点 n 处的 任一跑道 ,请你返 ...
分类:其他好文   时间:2021-04-12 12:36:30    阅读次数:0
内部类
定义一个内部类,直接将内部类定义在外围类的里面。 interface yu{ void sout(); } public class lc_2 { public int num1; private int num2; class innerClass implements yu{ public in ...
分类:其他好文   时间:2021-03-30 13:02:50    阅读次数:0
989条   1 2 3 4 ... 99 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!