About 58 results
Open links in new tab
  1. Python Logic of ListNode in Leetcode - Stack Overflow

    Python Logic of ListNode in Leetcode Asked 6 years, 7 months ago Modified 4 years, 6 months ago Viewed 116k times

  2. python - LeetCode 2. Add Two Numbers - Code Review Stack Exchange

    Dec 12, 2025 · LeetCode's data structures LeetCode's linked list data structure is dumb. It doesn't do nice things like let you iterate over it using built-in functionality in Python. But you don't have to live …

  3. python - NameError is not defined in leetcode problem - Stack Overflow

    Sep 14, 2021 · Please bear with me, I'm still getting used to OOP in python. I'm preparing for coding interviews, and find that Leetcode problems generally have the following structure. class Solution: def

  4. python - How to convert ListNode from LeetCode to regular list?

    Sep 24, 2021 · This is probably not what leetcode expects you to do. I suggest you take a while to try to figure out how ListNode works, instead of trying to convert it into a list.

  5. Usage of "self" in Python leetcode problem - Stack Overflow

    Sep 13, 2022 · Usage of "self" in Python leetcode problem Asked 3 years, 4 months ago Modified 3 years, 4 months ago Viewed 2k times

  6. Merge Two Sorted Lists - LeetCode (Python) - Stack Overflow

    Jul 3, 2022 · Merge Two Sorted Lists - LeetCode (Python) Asked 3 years, 6 months ago Modified 2 years, 6 months ago Viewed 182 times

  7. Leetcode answer print and answer not matching in Python

    Nov 6, 2023 · Leetcode answer print and answer not matching in Python Asked 2 years, 2 months ago Modified 2 years, 2 months ago Viewed 695 times

  8. LeetCode Python 3 vs Python 3 in other environments

    Dec 16, 2022 · My question is what is List defined as to allow it to be used in the parameters and virtually be ignored. On LeetCode Python3 this will return grid class Solution: def uniquePathsIII(self, …

  9. Add two numbers - Python - Leetcode - Stack Overflow

    Nov 18, 2021 · This LeetCode problem uses custom linked list implementation, as per comment, and you're using plain Python arrays.

  10. python - Two Sum on LeetCode - Stack Overflow

    May 4, 2015 · I'm trying to do a LeetCode Two Sum question: Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return …