Forwarded from Dagmawi Babi
📝 DBlogs
I have been journaling my life since I was a child and I loved how it helped me put things into perspective, helped sort out my emotions and clarified my thoughts. 😊
I write about concepts and thoughts I've encountered and am learning about. And they've really helped me and so I thought it'd be nice to share it with others too... giving birth to DBlogs, my personal blog site. 🎉
It will be where I post all of my important notes, bible studies, tech content and so much more. I hope it becomes your own resource for growth, knowledge and wisdom. 🪴
DBlogs
• blog.dagmawibabi.com
• dagmawibabi.com/blog
Alternate Link
• dblogs-dusky.vercel.app
Enjoy. 😊
#DBlogs #MyProjects
@Dagmawi_Babi
I have been journaling my life since I was a child and I loved how it helped me put things into perspective, helped sort out my emotions and clarified my thoughts. 😊
I write about concepts and thoughts I've encountered and am learning about. And they've really helped me and so I thought it'd be nice to share it with others too... giving birth to DBlogs, my personal blog site. 🎉
It will be where I post all of my important notes, bible studies, tech content and so much more. I hope it becomes your own resource for growth, knowledge and wisdom. 🪴
DBlogs
• blog.dagmawibabi.com
• dagmawibabi.com/blog
Alternate Link
• dblogs-dusky.vercel.app
Enjoy. 😊
#DBlogs #MyProjects
@Dagmawi_Babi
❤1
Okay so like , code challenge ( me , chat gpt and a friend of mine are taking a while to do it so might as well ask for help )
you have an long array of arrays like this
value is count of the duplicates
you have an long array of arrays like this
[
...
[
{ category: 'All', nesting: 0, _id: '64d1ea2d65b85166bbdab23f' },
{
category: 'Electrical',
nesting: 1,
_id: '64d1ea2d65b85166bbdab240'
},
{
category: 'Indoor Plug & Outlet',
nesting: 2,
_id: '64d1ea2d65b85166bbdab241'
},
{
category: 'Smart Plugs',
nesting: 3,
_id: '64d1ea2d65b85166bbdab242'
}
],
[
{ category: 'All', nesting: 0, _id: '64d1ea2e65b85166bbdab30c' },
{ category: 'Lighting', nesting: 1, _id: '64d1ea2e65b85166bbdab30d' },
{
category: 'Lighting Source',
nesting: 2,
_id: '64d1ea2e65b85166bbdab30e'
},
{
category: 'Light Bulbs',
nesting: 3,
_id: '64d1ea2e65b85166bbdab30f'
}
]
...how do you make a tree structure like the pic ? did it in py but cant seem to do it in js
]
value is count of the duplicates
its all wrong again, all so fucking wrong. all so God damn wrong. Compromised , like a math question where you don't know if you carried that one 10 lines ago. imperfect , unsure , irrational
javascript types