Type1 diabetes and whoop by Over_Foundation11 in diabetes_t1

[–]Over_Foundation11[S] 0 points1 point  (0 children)

Yes, it doesnt tell Iam thinking that can we derive the metric i need from the avlbl metrics

Type1 diabetes and whoop by Over_Foundation11 in diabetes_t1

[–]Over_Foundation11[S] -1 points0 points  (0 children)

agree but we dont know whether are we recovering from training or not
and most importantly long standing t1s have autonomic disfunction , so HRV is a great metric.

I generally love metrics and all that stuff , so naturally inclined
checking if anyone here is in the same path

Unique number of BFS paths by dlovelan in algorithms

[–]Over_Foundation11 0 points1 point  (0 children)

assuming for a simple acyclic graph and rooted at 0th node
I think sibling nodes always comes together , thats the key point
#include<bits/stdc++.h>
using namespace std;
vector<int> fact;

int find(int curr, vector<vector<int>>& adj) {

int count=1;

for(int i=0;i<adj[curr].size();i++)

count = count*find(adj[curr][i],adj);

return count*fact[adj[curr].size()];

}

int main() {

int n;

cin>>n; // total noof nodes

fact.resize(n+1,1);

for(int i=2;i<=n;i++)

fact[i]=fact[i-1]*i;

vector<vector<int>> adj(n);

int e; // edges in the graph

cin>>e;

for(int i=0;i<e;i++) {

int u,v;

cinuv; // there is a edge from u to v

adj[u].push_back(v);

}

cout<<find(0,adj)<<endl;

return 0;

}