```python class Node: def __init__(self, data): self.data = data self.next = None class Solution: """反转链表, 输出表头""" def ReverseList(self, pHead): # 空链表... ...
分类:
编程语言 时间:
2020-03-21 16:27:48
阅读次数:
65
编写一个函数reverse_string(char*string)(递归实现)实现:将参数字符串中的字符反向排列。要求:不能使用C函数库中的字符串操作函数。#include<stdio.h>intreverse_string(char*string){if(*string==‘\0‘){return0;}reverse_string(string+1);printf("%c",*str
分类:
编程语言 时间:
2020-03-19 09:30:43
阅读次数:
66
题目描述 输入一个链表,反转链表后,输出新链表的表头。 题目详解 递归,先顺序递归到倒数第二个节点。然后以此回归,并设置head.next = null。保证首节点反转变成最后一个节点后的下一个节点为null。 /* public class ListNode { int val; ListNode ...
分类:
其他好文 时间:
2020-03-18 21:41:47
阅读次数:
54
"https://codeforces.com/contest/1324/problem/F" description you are given a tree, in which the vertices are all printed either black or white. , find ...
分类:
其他好文 时间:
2020-03-18 00:04:49
阅读次数:
76
# -*- coding: utf-8 -*- import re from time import sleep import scrapy from scrapy.linkextractors import LinkExtractor from scrapy.spiders import Craw ...
分类:
编程语言 时间:
2020-03-17 14:12:40
阅读次数:
87
Collections工具类:操作集合的工具类 Java提供了一个操作Set List Map等集合的工具类:Collections,该工具类提供了大量方法对集合元素进行排序、查询和修改等操作。还提供了将集合对象设置为不可变,对集合对象实现同步控制等方法。 排序操作 查找、替换操作 同步控制 Col ...
分类:
其他好文 时间:
2020-03-17 12:41:03
阅读次数:
76
Deep Photo Style Transfer - 照片风格迁移算法 - 工具资源 - 掘金 This is a torch implementation of the paper A Neural Algorithm of Artistic Style by Leon A. Gatys, Al ...
分类:
其他好文 时间:
2020-03-16 14:26:21
阅读次数:
54
Circlr是一款可以对产品图片进行360度全方位旋转展示的插件。Circlr通过按一定角度规律拍摄的产品图片,制作出可以使用鼠标拖动、鼠标滚轮和移动触摸来进行图片逐帧旋转的效果。比先前的Rollerblade,动画顺畅了许多,也更易于控制,该插件非常适合于商品的展示。它的特点有:1、支持水平或垂直 ...
分类:
其他好文 时间:
2020-03-15 19:03:22
阅读次数:
72
Docker的三大核心概念:镜像、容器、仓库 镜像:类似虚拟机的镜像、用俗话说就是安装文件。 容器:类似一个轻量级的沙箱,容器是从镜像创建应用运行实例,可以将其启动、开始、停止、删除、而这些容器都是相互隔离、互不可见的。 仓库:类似代码仓库,是Docker集中存放镜像文件的场所。 简单介绍一下在Ce ...
分类:
其他好文 时间:
2020-03-14 21:45:30
阅读次数:
44
keyof Partial & Pick Condition Type never & Exclude & Omit typeof is Dictionary & Many enum ...
分类:
其他好文 时间:
2020-03-14 20:28:30
阅读次数:
82