c++
Connect n ropes with minimal cost
Given n ropes of different lengths, connect them into a single rope with minimum cost. Assume that the cost to connect two ropes is the same as the sum of their lengths. For example, The Read more…
Given n ropes of different lengths, connect them into a single rope with minimum cost. Assume that the cost to connect two ropes is the same as the sum of their lengths. For example, The Read more…
Given a level order representation of a complete binary search tree, print its elements in increasing order. For example, the level order representation of the complete BST below is [15, 10, 20, 8, 12, 18, Read more…
Given an array of words where no word is the prefix of another, find the shortest unique prefix to identify each word in the array uniquely. For example, The idea is to construct a Trie Read more…
This is a follow-up to this post. I’ve decided that paying a few pounds for a Udemy course is looking like the best way forward for me, as it’s a balance between the inadequate free Read more…
Given a binary tree, extract all its leaves into a doubly linked list, i.e., remove all leaf nodes from the binary tree and construct a doubly linked list out of them. The extraction should be Read more…
Hi all! My objective is to build an application which can: Open the Xbox Game Bar when the GUIDE button is single-pressed Control the Xbox Game Bar by translating Xbox 360 controller buttons to keyboard Read more…
Write an efficient algorithm to fix the children-sum property in a given binary tree. The only operation allowed is an increment operation on the node’s value For a tree to satisfy the children-sum property, each Read more…
Hi everyone, i share my pics and my problem: https://imgur.com/a/poes3vI I have a loop (pic2) in which i need read the some data link to my id…. However… the function works but during longer loops Read more…
I’ve been looking for something like p5 but for c# since I like it a ton. I just need a simple graphics library that I can make small test projects and games. I’ve tried Visual Read more…
Hi everybody, I’m looking for a reporting library that can be capable of showing the report to the user and then export it to PDF or DOC/DOCX. I looked at SSRS, but I need to Read more…