Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: youngyangyang04/leetcode-master
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: lanzilan827/leetcode-master
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Jul 9, 2025

  1. Update 面试题02.07.链表相交.md

    在 Python 中,curA == curB 和 curA is curB 是两个不同的操作:
    
    == 比较的是两个对象的值是否相等(调用 __eq__() 方法)。
    
    is 比较的是两个对象的身份是否相同(即是否指向内存中的同一个对象)。
    
    在这个链表相交的问题中,我们是想找两个链表在内存中首次相交的节点,所以判断的是:是否是同一个节点对象,而不是值是否相同。值相同并不代表是同一个节点。
    lanzilan827 authored Jul 9, 2025
    Configuration menu
    Copy the full SHA
    b49faec View commit details
    Browse the repository at this point in the history
Loading