#

leetcode

  • 给定一个链表,删除链表的倒数第 n 个节点(已知该结点存在),并且返回链表的头结点。

    思路: 找到倒数第n个结点的前一个结点,让该结点的后继为倒数第n个结点的后继 子问题:找到倒数第n个结点的前驱 1.有两个引用,第一个引用指向首节点,然后走n步

    作者:灵谷鱼
    2020-06-02 09:26:58
  • Leetcode:835. 图像重叠

    直接找出所有1的位置,然后对两个矩阵的所有这些位置进行求差。然后统计这些差出现最多的次数是多少。 两个坐标的差是什么含义?就是把其中一个坐标移动到另一个坐标需要移动的向量。因此,在遍历过程中,我们找出

    作者:f1yinsky
    2020-05-26 22:03:54
  • 136. Single Number leetcode做题报告

    Given an array of integers, every element appears twice except for one. Find that single one.Note:Yo

    作者:zjwzjw369
    2020-05-26 07:34:51
  • LeetCode002 Add Two Numbers C语言

    You are given two linked lists representing two non-negative

    作者:努力的C
    2020-05-17 22:38:12
  • leetcode 137 && 360一面算法 &&有道一面

    题目描述:给一个数组,有一个数出现了两次或者1次,而其他数都出现了三次,找出这个数。其实对应了leetcode 137。网上的解法多是位运算public int singleNum

    作者:努力的C
    2020-04-21 01:07:46
  • Reverse Integer之Java实现

    一、题目 Given a 32-bit signed integer, reverse digits of an integer.Example 1: Input: 123 Out

    作者:xiezh10
    2020-04-01 21:10:02