sridhar153999's blog

By sridhar153999, history, 21 month(s) ago, In English

HELLO CODERS

i found this dp problem on leetcode (ones and zeros) (https://leetcode.com/problems/ones-and-zeroes/) i solved it using 3 states [position][no_of_zeros][no_of_ones] its giving me memory limit exceeded i saw some people using 2d state [no_of_zeros][no_of_ones] .i cant understand how they come up with their solution .help me explaining their 2 d concept. MY solution link solution although the time complexity of my code and thier code is same.

Read more »

 
 
 
 
  • Vote: I like it
  • 0
  • Vote: I do not like it

By sridhar153999, history, 2 years ago, In English

i have registered in ACM-ICPC gwalior region(ASIA country-INDIA) till yet our team status is pending we have done our payment as well as we have done mail to gwalior region .what should we do? Can we still do participation in Online round tomorrow contest??

Read more »

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

By sridhar153999, history, 2 years ago, In English

i want to know from where i can kearn gaussian elimination ?if u can provide some video that will be also good or any blog pls or if u can teach me here with good set of example !

Read more »

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

By sridhar153999, history, 2 years ago, In English

include<boost/multiprecision/cpp_int.hpp>

namespace mp = boost :: multiprecision; this header file is supported in codechef for big integer why not in codeforces?

Read more »

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

By sridhar153999, history, 2 years ago, In English

i just want to start learning dp .but from which problem should i start first?

Read more »

 
 
 
 
  • Vote: I like it
  • 0
  • Vote: I do not like it

By sridhar153999, history, 2 years ago, In English

i m able to use c++ but C++ 14 is not working as well as how can i setup atom for competetive programming .i mean to say . i want to give input at once that one input and other output file

Read more »

 
 
 
 
  • Vote: I like it
  • 0
  • Vote: I do not like it

By sridhar153999, history, 2 years ago, In English

MAXIMUM XOR USING K ELEMENT IN ARRAY

for example

5 3
1
2
3
4
5
 

here no of element=5,k=3; here OUTPUT IS 7 how to approach this type of problm with or without recursion which one is easier source= https://www.spoj.com/problems/CODEIT02/

Read more »

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