tanmaytaneja2's blog

By tanmaytaneja2, history, 7 months ago, In English

My 'favorites' list is only being updated when I favorite a specific question through the problemset menu. When I try favoriting a particular problem through the question link itself (from the top right), my list doesn't get updated. Wanted to know if anyone else is facing the same issue because I seem to have lost some of my favorited questions.

Full text and comments »

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

By tanmaytaneja2, history, 8 months ago, In English

Very basic doubt but I had to ask :

Say TC == O(n*t); Would their be any significant differences in runtime of (t=10, n=10000), (t=1000, n=100) and (t=10000, n=10)? If yes, why? I tried searching for the answer on the web but I couldn't find a solution which satisfied me.

say code : ~~~~~ int t; cin>>t; while(t--){ int n; cin>>n; for(int i=0; i<4; i++){ for(int j=0; j<n; j++){ // whatever; } } } ~~~~~

(Not talking about the general runtime difference when running the same code multiple times due to processor)

Full text and comments »

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