"I tried to Find out success using binary search....But ended up realizing that my life is not sorted..."
Conclusion--->>>There are no shortcuts, do it the hardworking way
# | User | Rating |
---|---|---|
1 | ecnerwala | 3649 |
2 | Benq | 3581 |
3 | orzdevinwang | 3570 |
4 | Geothermal | 3569 |
4 | cnnfls_csy | 3569 |
6 | tourist | 3565 |
7 | maroonrk | 3531 |
8 | Radewoosh | 3521 |
9 | Um_nik | 3482 |
10 | jiangly | 3468 |
# | User | Contrib. |
---|---|---|
1 | maomao90 | 174 |
2 | awoo | 164 |
3 | adamant | 161 |
4 | TheScrasse | 159 |
5 | nor | 158 |
6 | maroonrk | 156 |
7 | -is-this-fft- | 152 |
8 | SecondThread | 147 |
9 | orz | 146 |
10 | pajenegod | 145 |
"I tried to Find out success using binary search....But ended up realizing that my life is not sorted..."
Conclusion--->>>There are no shortcuts, do it the hardworking way
Name |
---|
r/iam14andthisisdeep
sort(life.begin(),life.end());
problem solved
I tried to calculate my chance for success using dp...But ended up realizing that my life is cyclic.
Then Gaussian Elimination is coming into consideration.
How can you use Gaussian elimination to solve a DP where subproblems have cyclic dependency ?
Gaussian elimination is used to solve a system of linear equations. So ... how ?
Maybe I'm not getting your point. But as I know, in some probabilities dp problems, dp equations are something like: $$$dp[i] = \sum\limits _{j\text{ is adjacent to }i} a[i][j] * dp[j]$$$, where $$$a[i][j]$$$ is some sorts of coefficient. In such case, the dp equations do turn into linear equations. :)
but what if there are no solutions?
Then print F instead.
I tried applying dp but then I realized, everything is just stupid greedy
I tried to find out the answer of life by representing it as $$$p \times q^{-1} (mod\,M)$$$ where $$$p$$$ and $$$q$$$ are coprime but I realized life doesn't have a prime modulo, neither is life even rational...
I thought past experience will help me in life but everyday is just addhoc
But when life starts to feel monotonic, you know what to do ;)
I tried to find the Shortest path to success using Dijkstra... But ended up realizing that my life is full of negative weight edges.