码迷,mamicode.com
首页 >  
搜索关键字:while if else    ( 50281个结果
链表相交 三种思路 C++ 代码
方法1 回环法 讲listA & listB看成一个环 class Solution { public: ListNode *getIntersectionNode(ListNode *headA, ListNode *headB) { //回环法 讲listA & listB看成一个环 //e.g ...
分类:编程语言   时间:2021-05-24 10:28:54    阅读次数:0
vue展示默认图片
如果有图片就展示图片,没有图片展示默认图片 <td rowspan="6" style="width:70%"> <img v-if="!item.imgs" src="../../../../assets/index/default.png" /> <j-image v-else :imageSr ...
分类:其他好文   时间:2021-05-24 09:13:11    阅读次数:0
Unable to resolve service for type`***` while attempting to activatre `***`
出现上图那样的情况 一般是没有在Startup类中的ConfigureServices中注入接口和实现类 注入一个就ok ...
分类:其他好文   时间:2021-05-24 09:04:56    阅读次数:0
layui穿梭框使用
《说明先引入layui组件框架》 <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%><%@ taglib prefix="c" uri="http://java.sun.com/ ...
分类:其他好文   时间:2021-05-24 08:43:31    阅读次数:0
CF1245D Shichikuji and Power Grid
思路: 图论。参考了https://codeforces.com/blog/entry/71080。 实现: 1 #include<bits/stdc++.h> 2 using namespace std; 3 typedef long long ll; 4 const ll INF = 0x3f3 ...
分类:其他好文   时间:2021-05-24 08:39:17    阅读次数:0
小米面试前算法准备:leetcode88,合并两个有序数组
关键思路从后往前合并 class Solution { public void merge(int[] nums1, int m, int[] nums2, int n) { int idxm=m-1; int idxn=n-1; int sum=m+n-1; while(idxm>=0&&idxn ...
分类:移动开发   时间:2021-05-24 08:38:40    阅读次数:0
双指针
###双指针算法: 核心思想就是缩减时间复杂度 for (int i = 0; i < n; i++) { for (int j = 0; j < n; j++) { 时间复杂度是O(n * n) } } 双指针模板 for (i = 0; j = 0; j < n; j++) { while (j ...
分类:其他好文   时间:2021-05-24 08:01:14    阅读次数:0
leetcode 剑指 Offer 32 - III. 从上到下打印二叉树 III
请实现一个函数按照之字形顺序打印二叉树,即第一行按照从左到右的顺序打印,第二层按照从右到左的顺序打印,第三行再按照从左到右的顺序打印,其他行以此类推。 例如:给定二叉树: [3,9,20,null,null,15,7], 3 / \ 9 20 / \ 15 7返回其层次遍历结果: [ [3], [2 ...
分类:其他好文   时间:2021-05-24 07:46:56    阅读次数:0
Java实现CURL,与把字符串结果写到json文件
@Override public String getUrlRestInfo(String[] command, String fileName) { //新建一个StringBuffer StringBuffer sb = new StringBuffer(); //过程 Process pro ...
分类:编程语言   时间:2021-05-24 06:50:41    阅读次数:0
JQuery 实现表单验证,所有验证通过方可提交
1 <html> 2 <head> 3 <meta http-equiv="content-type" content="text/html; charset=utf-8"> 4 <title>Reg</title> 5 <style> 6 .state1{ 7 color:#aaa; 8 } 9 ...
分类:Web程序   时间:2021-05-24 06:16:05    阅读次数:0
50281条   上一页 1 ... 21 22 23 24 25 ... 5029 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!