MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / main

Function main

CPP/Problems/MinimizeTheHeight.cpp:85–101  ·  view source on GitHub ↗

{ Driver Code Starts.

Source from the content-addressed store, hash-verified

83
84// { Driver Code Starts.
85int main() {
86 int t;
87 cin >> t;
88 while (t--) {
89 int n, k;
90 cin >> k;
91 cin >> n;
92 int arr[n];
93 for (int i = 0; i < n; i++) {
94 cin >> arr[i];
95 }
96 Solution ob;
97 auto ans = ob.getMinDiff(arr, n, k);
98 cout << ans << "\n";
99 }
100 return 0;
101} // } Driver Code Ends
102

Callers

nothing calls this directly

Calls 1

getMinDiffMethod · 0.80

Tested by

no test coverage detected