noobboyyyy's blog

By noobboyyyy, history, 4 years ago, In English

Problem Link :http://www.usaco.org/index.php?page=viewproblem2&cpid=1043 My approach was let we will store the K in vector for Each i [1...N] now let say n+1 can be represented as sum of x+y i:e n+1= x+y so answer will be set[n]=Lcm of (Set[x],Set[y]) for every unique pair of x,y but this solution is not working can anyone give correct solution

Full text and comments »

  • Vote: I like it
  • +2
  • Vote: I do not like it

By noobboyyyy, history, 4 years ago, In English

Can anybody help me to figure out the reason why getting TLE DESPITE USING DFS Iterative Version Problem : https://cses.fi/problemset/task/1666/ My Solution :https://cses.fi/problemset/result/1699864/ It will be great if you can point out

Full text and comments »

  • Vote: I like it
  • -3
  • Vote: I do not like it

By noobboyyyy, history, 4 years ago, In English

Can Some one explain approach for this problem Bottom Up Problem Link :https://leetcode.com/problems/stone-game-ii/

Full text and comments »

  • Vote: I like it
  • -3
  • Vote: I do not like it