trojans's blog

By trojans, history, 5 years ago, In English

Warm greetings to the codeforces community,

Found the following problem statement on internet :

---Problem statement starts---

Your app uses a 3rd party video player. The VP has the functionalities – play, pause, seek, close. On close, the VP component makes a callback to your app. It passes the below params on close – a) total length of the video in seconds b) array of VideoPart objects, where each VideoPart {startTime; endTime;}. VideoPart denotes continuous part of the video that was watched withuot any disturbance due to pause or seek. Sequence of VP objects in the array, is the same sequence as he watched the video parts.

Sample Input:

60, [{0, 60}] 60, [{0, 30}, {30, 60}]

return a int value(0, 1) denoting the user has watched the entire video or not.

---Problem statement ends here---

One way of solving this problem that came to my mind is using hashmaps. Is there a better way of solving this problem with a better time and space complexity? Please do let me know in the comments. Thanks in advance.

Full text and comments »

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

By trojans, history, 5 years ago, In English

Warm wishes to the codeforces community!, I haven't visited https://www.csacademy.com in a long time. Today I happened to visit the site and found that the site has been dead for the last two months. Not a single contest has been hosted since 22nd of August this year. Any idea about what has happened to them? Their latest blog post here on codeforces is again 2 months old. I know a lot of you here in the competitive programming had used csacademy. Please share any information here if any of you happen to know about them. Thanks.

Full text and comments »

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

By trojans, history, 6 years ago, In English

Warm wishes to the codeforces community

I'm a middle school student who's seeking to improve my programming ability. What is the best way to do it? I can do basic programming problems. What are the topics I need to learn. Can please someone tell.

Thanks in advance

Full text and comments »

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