python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
array of strings to tree data structure?
There is data returned from server containing an array of strings as hierarchy like this:
var array = [
"house.bedroom.bed",
"house.kitchen.spoon",
"house.kitchen.knife&quo...
mr.wayne
Votes: 0
Answers: 2
How to convert a raw data into hierarchical structure
I have raw data from database table which is not having direct relation wit one another. But I'm having a set of keys, that gives us the order of the hierarchy in our data.
Tried something like this. ...

Jithin Joseph
Votes: 0
Answers: 2
Assigning a HANA hierarchy query to a table variable leads to inconsistent results
Context
I want to use the HANA HIERARCHY_TEMPORAL function to work on a SAP KNVH hierarchy with time intervals ;
When simply used in a SELECT query, this works fine ;
When otherwise using the very sam...

Frederi ROSE
Votes: 0
Answers: 2
Convert flat array of persons into nested pedigree tree in JavaScript
I'm trying to transform a flat list of persons into a structured tree of ancestry.
The source array of persons looks like this:
const list = [
{
id: 1,
name: 'John',
akin: ...
Bastian Immanuel André
Votes: 0
Answers: 1