Skip to content

issues Search Results · repo:PegasusWang/python_data_structures_and_algorithms language:Python

Filter by

29 results
 (72 ms)

29 results

inPegasusWang/python_data_structures_and_algorithms (press backspace or delete to remove)

https://github.com/PegasusWang/python_data_structures_and_algorithms/blob/3469a79c34b6c08ae52797c3974b49fbfa8cca51/docs/02_%E6%95%B0%E7%BB%84%E5%92%8C%E5%88%97%E8%A1%A8/array_and_list.py#L14 thank you ...
  • miseon119
  • Opened 
    on Jul 15, 2022
  • #35

大佬,你这里哈希表的二次探测函数,会出现无限循环的情况。 def _find_slot_for_insert(self, key): index = self._hash(key) _len = len(self._table) while not self._slot_can_insert(index): # 直到找到一个可以用的槽 index = (index ...
  • loveleicheng
  • Opened 
    on May 4, 2022
  • #34

请问 leetcode 实战教程 有对应的电子书或讲义吗
  • coorful
  • 1
  • Opened 
    on May 27, 2021
  • #32

您好,在数据结构和算法 04队列有一句可能写错了~ 2.看起来队列需要从头删除,向尾部增加元素,也就是 list.insert(0, element) 和 list.append(element) 应该不是insert是 pop 感谢您的教程~
  • roadlmy
  • 2
  • Opened 
    on Jan 27, 2021
  • #31

在链表的remove方法中 这行代码实现,经过测试貌似是有问题的。 def remove(self, value): # O(n) 删除包含值的一个节点,将其前一个节点的 next 指向被查询节点的下一个即可 ............. if curnode is self.tailnode: # NOTE: 注意更新 tailnode if prevnode is self.root: self.tailnode ...
  • BigFishDreamWater
  • 1
  • Opened 
    on Sep 22, 2020
  • #29

老师您好,我看您的课程中我发现您每次写完单测函数之后不执行那个函数,是因为您的那个测试工具就会自动执行里面的函数吗?
  • Qingqing1spider
  • 2
  • Opened 
    on Aug 12, 2020
  • #28

dll = CirculateDoubleLinkedList() 此时maxsize = None 使用append方法 和appendleft 还是可以添加 append方法里面没有抛出异常 if self.maxsize is not None and len(self) self.maxsize: raise Exception( full ) 改成下面代码就可以限制 if self.maxsize ...
  • 71n9
  • Opened 
    on Dec 23, 2019
  • #27

def _siftdown(self, ndx): left = 2 * ndx + 1 right = 2 * ndx + 2 # determine which node contains the larger value largest = ndx if (left self._count and # ...
  • lihujun101
  • 1
  • Opened 
    on Oct 10, 2019
  • #26
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Restrict your search to the title by using the in:title qualifier.
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Restrict your search to the title by using the in:title qualifier.
Issue search results · GitHub