Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
-1 votes
0 answers
17 views

Get the columns of a XUL/XHTML tree to auto-expand while still allowing manual resizing? [closed]

I'm working on a Thunderbird extension of mine, removedupes. Among other things, it includes a dialog for reviewing duplicate message sets and deleting them; and that dialog has a tree-table widget, ...
5 votes
3 answers
331 views

Find any single 2D point within radius, but fast

I've got a list P of 2-dimensional points, 100 ≤ |P| ≤ 100000, and a list C of circle centers, 100 ≤ |C| ≤ 100000. All coordinates (x,y) ∈ P or (x,y) ∈ C are integral, 0 ≤ x,y ≤ 4095. P and C may ...
0 votes
0 answers
38 views

Create custom Pivot table with tree structure

I created a pivot table like the one in the image. The data part was done this way The pivot representation works for me because for each product, line, or family (iPad->iPad Air->iPad Model), ...
2 votes
1 answer
101 views

Display game variation tree using compact vertical layout

I want to create a multi-line string that can be printed out or displayed via curses. This string displays the moves and variations of a go/weiqi/baduk game from an sgf file using unicode characters. ...
0 votes
1 answer
64 views

How can I compare a tree with different node types to a list of courses to see which courses have been completed and which haven't?

I'm working on a transcript analyzer personal project and I'm having an issue comparing the courses that are read in from the transcript with the required corses. The required courses are stored in a ...
-2 votes
1 answer
68 views

Treelib does not show hierarchical tree node data [closed]

Using tree package treelib in Python I define a small tree that is slightly modified from the description for command show: from treelib import Tree tree = Tree() tree.create_node("Root", &...
0 votes
0 answers
41 views

Tree (closure table) does not save children relations to _closure table

I have the following entity: @Tree('closure-table') @Entity() @Unique(['target', 'slug']) export class SupportNodeEntity extends TreeNodeEntity { @Column({ type: 'enum', enum: SupportNodeVisibility, ...
Korer's user avatar
  • 375
0 votes
4 answers
577 views

Answer sum of values on tree path, with updates, efficiently

You are given an unweighted tree with N nodes and each node starts with value 0. There will be Q queries. The 1st type of query will change the value at a node to a new value. The 2nd type of query ...
1 vote
1 answer
148 views

LeetCode 199. Binary Tree Right Side View constant memory complexity

I'm trying to solve LeetCode 199. Given the root of a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bottom. I've ...
2 votes
1 answer
159 views

How to ensure correct destructing of a non-regular tree?

I need a function that parses a string to create a non-regular tree and returns a pointer to its root. In the case of a parsing error, an exception is thrown. My current attempt leaks memory. How to ...
yoan's user avatar
  • 45
0 votes
0 answers
44 views

Ant Design Tree keeps scrolling with the mouse pointer even after releasing the mouse (during DnD), and also when the pointer is outside the tree

Description: I'm using the Ant Design Tree component with drag-and-drop enabled. During drag, the tree auto-scrolls based on the mouse position — which is expected. However, it keeps scrolling even ...
Rajath's user avatar
  • 3,008
2 votes
2 answers
141 views

How to make a tree support dark/light mode?

All the pages I have been able to add support for dark/light mode. One page has a tree and everything I tried failed and most changes made the formatting (text, alignment, etc.) change, for the worse. ...
Mark's user avatar
  • 123
0 votes
0 answers
71 views

How to construct an AVL tree from a set of keys: 10, 20, 5, 4, 3, 2, 30, 40?

I'm trying to understand how an AVL tree is built from a sequence of integer keys. The keys I have are: 10, 20, 5, 4, 3, 2, 30, 40 I want to construct the AVL tree step by step and see how rotations ...
2 votes
1 answer
117 views

Get matrix of branch actual length to species tips

Based on this example I have a phylogenetic with species at the tip and branch lengths (that are not necessarily 1). My goal is to calculate phylogenetic diversity multiplying a species community ...
0 votes
1 answer
40 views

Click Events of JSX Elements rendered programatically in the dom not setting state right

This is a weird one but I'm a major novice when it comes to React, I'm probably just doing this completely wrong but I'm trying to dynamically render a content tree. It starts with a single node and ...

15 30 50 per page
1
2 3 4 5
...
1119

AltStyle によって変換されたページ (->オリジナル) /