Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
40 views

I am looking at solutions of LeetCode problem 108. Convert Sorted Array to Binary Search Tree: Given an integer array nums where the elements are sorted in ascending order, convert it to a height-...
Daniel Chiu's user avatar
0 votes
1 answer
223 views

I'm trying a implement a complete BST tree, currently I have only created a balanced tree. The idea is to move all the leaves from the balance tree to the left of the left subtree to create a complete ...
kdr1080k's user avatar
0 votes
2 answers
202 views

I have a generic type tree class as follows: public class TreeNode<T> { private readonly T _data; private readonly TreeNode<T> _parent; private readonly List<TreeNode<T&...
AoLiGei's user avatar
  • 81
0 votes
2 answers
142 views

In my Telerik WinForms application, I'm able to bind a TreeView to a Well object in my application through object-relational binding as such: this.wellTreeView = new RadTreeView(); BindingList<...
Suhaib Ahmad's user avatar
0 votes
1 answer
231 views

Windows 10, Delphi 11. I want to set .Checked only for children of a single TTreeNode with checkboxes. This is the default behavior in TreeViews. But the following code also selects all siblings (on ...
Bart Kindt's user avatar
8 votes
4 answers
12k views

When the player clicks I am trying to pass the position and direction of the camera3D (which is in the player scene) to the world scene through a signal to spawn a bullet with that direction and ...
Science Philosophy's user avatar
-1 votes
1 answer
87 views

I would like a bit of help with my code. This is my first time posting, so please excuse the length. Overview: I have conducted a CTREE analysis to identify certain intersections associated with a ...
temmy18's user avatar
0 votes
1 answer
135 views

envirement:("@angular/core": "~7.1.0","angular-tree-component": "^8.0.1") The problem is that i'm filtering through the node children but for some nodes the ...
eso's user avatar
  • 1
-1 votes
1 answer
54 views

Given a B-Tree, I have to look for all the nodes that are length n. However, I'm struggling to traverse with B-trees of a height greater than 1. I'm not sure how I can make my recursive call or my ...
hii's user avatar
  • 11
0 votes
1 answer
80 views

I am trying to check if a node has a sibling using a recursive method, but it seems that my method doesn't go into the tree besides the first two children. So in this example, if I want to check if 6 ...
hii's user avatar
  • 11
-1 votes
1 answer
72 views

From the following paragraphs: "Elements and tags are not the same things. Tags begin or end an element in source code, whereas elements are part of the DOM, the document model for displaying the ...
Andrea's user avatar
  • 13
-1 votes
1 answer
216 views

I need help to convert this json tree nodes to final json structure joining the nodes recursively. Any help is appreciated. I need a recursively function in javascript. Given below the sample input ...
nosdalg's user avatar
  • 571
0 votes
1 answer
55 views

Here is my code. I am using the sort method on the treeview but it sorts alphabetically, i want it to put any nodes beginning with w on top public int Compare(object thisObj, object otherObj) ...
practice projects's user avatar
0 votes
2 answers
161 views

For example: enter image description here Dividing between A and B: enter image description here Would DAC and B be considered two subsets? I am trying to create two subsets from an initial graph of 4 ...
user avatar
-1 votes
1 answer
568 views

for my project i have to create a huffman tree project, but my lecturer has said that i cannot use priority queues to build it? But i dunno how to implement that. Are there any other ways i can create ...
Grant Sodipo's user avatar
0 votes
1 answer
40 views

I was trying to solve GeeksForGeeks problem Size of Binary Tree: Given a binary tree of size N, you have to count number of nodes in it. For example, count of nodes in below tree is 4. 1 / ...
notVansh's user avatar
  • 219
0 votes
1 answer
1k views

This is the code: SELECT 'FXE_I_823' AS KEY, listagg(ftn.pk1_start_value || '|' || ffvv.description, '|') within GROUP (ORDER BY DEPTH) "TREE_CODE" FROM fnd_tree_node ftn, ...
Rajat Sulibhavi's user avatar
1 vote
1 answer
71 views

I am having problems where the text displayed for my treenodes is being replaced by a reference to the class I am storing in the tag property. I have a simple form I have built using the form designer ...
Christopher Pepin's user avatar
0 votes
1 answer
138 views

I am doing my practice, and the practice request create DSATreeNode and DSABinarySearchTree classes. The DSATreeNode is working fine, but when I use the function of insertRec. The insert function will ...
Martin Chan's user avatar
1 vote
0 answers
32 views

I'm writing asp.net code(web form ) with treeVeiw tags Here I'm added tage treeVeiw with ParentNodeStyle ,leafNodestyle,images ,Hovernodestyle like following code : <asp:TreeView runat="...
Esraa al-zoubi's user avatar
-2 votes
1 answer
253 views

How do I bind a tabItem IsSelected property to a treeView Node selection via index or reference? I want to be able to click on a treenode that will auto select a tabItem within a tabControl
Andy_'s user avatar
  • 19
0 votes
1 answer
1k views

from typing import Optional class Solution: def findLeaves(self,root: Optional[TreeNode]) -> list[list[int]]: def post_order(node): nonlocal lookup if not node: ...
Robert Lee's user avatar
0 votes
0 answers
183 views

I made a treeview in my .aspx page and code behind user can add TreeNode through the button. The problem is, I can select only one treenode but the next one I can't click / select. Should I handle ...
hellojun's user avatar
0 votes
1 answer
283 views

I am looking at this code which defines the height function, which returns the height of the given TreeNode in a binary tree. I don't understand why it should return a value of -1? What does it mean ...
Amanda James's user avatar
2 votes
1 answer
545 views

Now, when I define a TreeNode List such as: List node = otherNode.getChildren(); I get two warnings. For the left side: "TreeNode is a raw type. References to generic type TreeNode should be ...
ConfusedUbuntist's user avatar
-1 votes
1 answer
95 views

I am trying to create a new node when I right click on the treenode. private void treeView1_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e) { if (e.Button == MouseButtons.Right) { ...
Noob69's user avatar
  • 1
0 votes
0 answers
133 views

I have a DB handling app in which I came across a problem while updating many to many relation's objects. I have a table Devices and a table Admittances that are connected with one another with a ...
Kuba's user avatar
  • 9
0 votes
0 answers
265 views

I am trying to read the data from a text file given in a tree format. A sample of the text file looks like this, ['972651', '80080680482123777', '0.0']->['10678072', '80080680482123777', '1.8'] ['...
User's user avatar
  • 1
0 votes
3 answers
2k views

Hi there recently one sql question were asked in Uber which was really interesting and little bit hard as well. The question is as below Table: Tree +-------------+------+ | Column Name | Type | +-----...
Vishal Barvaliya's user avatar
1 vote
2 answers
893 views

Let's say I put in an entry in to my map which holds an object as a key: treeNode.put(someObject,someValue); then some time later I get that entry, and change the object so that now if resorted it ...
Nimroo's user avatar
  • 83
0 votes
1 answer
620 views

I am trying to figure out a way to use the StringFormat class to add new line to a given TreeNode text. For example, the string ID1:123456, ID2:789000, can be split by comma and insert a newline in ...
Emory Lu's user avatar
0 votes
0 answers
482 views

I have snippets of my code that should return the address of both the inorder and preorder successor of node alpha in a Double Threaded Binary Tree I am stuck with how to make a procedure for the ...
JohnDanger's user avatar
0 votes
0 answers
139 views

Currently, I am writing a java program that will try to scan a computer and present the memory component as a JTree like this Tree and work flow. The scan happens in two phases. In the first phase it ...
JackJack's user avatar
2 votes
1 answer
471 views

I am trying to sum the all children values from its node between a specific range from its root node. import java.util.ArrayList; import java.util.Arrays; import java.util.List; public class Program {...
Kelechi Daniels's user avatar
0 votes
1 answer
640 views

I'm trying to find all the nodes whose data is greater than the value using recursion. I learned from someone else that I should use Breadth-First Search but I'm still new to this algorithm. I've ...
wydncwymsjgcs's user avatar
2 votes
0 answers
477 views

Using CherryTree from Giuseppe Penone, Version 0.99.45. I want to copy a text list of node names and past it (from the clipboard) into CherryTree as a list of sub-nodes under the selected node. ...
skeetastax's user avatar
  • 1,816
-2 votes
2 answers
163 views

I am implementing a Binary Search Tree. And it so happens one of my sources have a function written such that: Node * BST_Insert(Node *root, int val) { //Body } I already know that a pointer is a ...
user avatar
0 votes
0 answers
429 views

This method need to return a size of all files from directory and file size. To determine file size use fileSize = tree.data.length();, but when i want to count size of all files (files in directory ...
Richard Walker's user avatar
0 votes
1 answer
3k views

I have a problem with the TreeView control in WinForm. The thing is, I need to automate the process of inserting nodes by using a while loop and using the node previously inserted in the control as ...
st4ticv0id's user avatar
0 votes
1 answer
80 views

CS Student here practicing on leetcode. I've been given the following problem: No idea if this code is any good or not, would appreciate some feedback there as well, but here is what I worked out: ...
Matt Angelucci's user avatar
0 votes
1 answer
395 views

I found that normal tooltips let you add InitialShowDelay. When adding a tooltip in a treeview, I can't seem to edit this delay. TreeNode node; node.ToolTipText = "Hello"; /* One suggestion ...
MysticMia's user avatar
0 votes
1 answer
184 views

I am attempting to create a TreeView control with custom TreeNode. Each TreeNode has an associated custom type/category which defines the appearance (eg, colour) and a specific right-click context ...
LucianH's user avatar
0 votes
1 answer
299 views

I'm working on a method that gives the next available node name if a node with the specified name exists. But the idea is that the method gives the next one from the max value, for example: If I add ...
jms2505's user avatar
  • 68
0 votes
1 answer
800 views

For the purpose of memory performance optimizations while building a Huffman tree I would like to pre-allocate the necessary memory for its nodes. Is there a way to calculate the maximum number of ...
Silicomancer's user avatar
  • 9,394
-2 votes
1 answer
421 views

This is Typescript //DICHIARATIONS AN CODE Ngonint--> ngOnInit() { if(this.title === "Create"){ this.dataProfilo = {} this.dataProfilo.function = []; ...
A. S. Bush's user avatar
0 votes
1 answer
68 views

I have a binary search tree. I have written basic insert, delete, traversal of the full tree and find its maximum and minimum node of the tree but I have trouble with finding maximum and minimum node ...
lony235's user avatar
  • 103
1 vote
1 answer
757 views

I was trying to construct a Binary Search Tree in python. This is my node class: class BSTNode: def __init__(self,val): self.left = None self.right = None self.val = val This class ...
lony235's user avatar
  • 103
1 vote
1 answer
555 views

Is there anyways to select father node without its children in Primefaces treenode? I am using Primefaces treenode to display a product category, but not all products belong to children categories. ...
Minh Nguyên Nguyễn Đức's user avatar
1 vote
0 answers
220 views

I'm creating a dictionary using BST as derive class from the dictionary class. since I'm using template, I encounter one error of which I figure out the reason but can't solve it. can anyone figure ...
peun's user avatar
  • 11
1 vote
1 answer
551 views

I am trying to convert a list into a tree structure for a primeng TreeTable. [{pk:"1", corpID:"1234", date: "31/03/21", rela:"4325", price:"20.00"}, {...
annaM's user avatar
  • 145

1
2 3 4 5
14