Codeforces Round 1133 (Div. 1, Div. 2) is coming soon! Register here. ×

saazz's blog

By saazz, history, 6 months ago, In English

Okay, so I recently fell down a rabbit hole with this game — and I genuinely can’t stop thinking about it.

It’s Tic Tac Toe… but with a twist.

Every move you make decides where your opponent has to play next. So you're not just thinking about your move — you're constantly setting traps… or accidentally walking into them.

Sounds simple. It’s not.

That’s what makes it so addictive.

I made a quick short explaining it — check it out: https://youtube.com/shorts/cj4HM6qs6dE

Full text and comments »

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

By saazz, history, 7 months ago, In English

Git is one of those tools that almost everyone hears about, but many beginners find it confusing at first. Once you understand the basics, it becomes a really useful way to manage and track your code.

I came across a short video that explains Git in a simple and clear way without going too deep into complex concepts. It's beginner-friendly and easy to follow.

If you're just getting started or want a quick understanding of Git, you might find it helpful:

▶ Watch the video here

Full text and comments »

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

By saazz, history, 14 months ago, In English

You are given a tree consisting of n vertices.

You can perform the following operation at most k times: delete a single leaf of the tree (the operation can produce new leaves, that can be deleted later). The resulting tree must have as small diameter as possible. Find the minimum possible diameter.

My Approach:- Delete all leaf nodes first until $$$k \gt =$$$ # of leaf nodes, Removing each layer will decrease diameter by 2 so let You can remove s layers then $$$D'$$$ = $$$D - 2*s$$$, Now the remaining k can decrease the diameter by 0 or 1, But i am stucked.

If you can solve this, plz explain.

Full text and comments »

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