Problem Analysis: A k-star consists of a center node and up to k arms (edges to other nodes) We need to find the k-star with maximum sum of all its nodes For each potential center, we choose the best neighbors (up to k) to maximize sum Algorithm: Build an adjacency list from the edges For each node as a potential center: Get all its neighbors Sort neighbors by their values (descending) Select up to k best neighbors Calculate sum: center + selected neighbors Return the maximum sum found
Quantitative Developer Interview Questions
10,161 quantitative developer interview questions shared by candidates
flip a coin the expected number to get two H
coding, experience,,, actually normal interview questions
How many numbers contain the digit 7 in the range 1 to 1 billion, exclusive
How many trailing zeros are there in 100!?
full time or internship
mental math and patter recognition
Coding questions in python language
dynamic programming for online test
expected value of rolling 3 dice
Viewing 9501 - 9510 interview questions