Блог пользователя saazz

Автор saazz, история, 6 месяцев назад, По-английски

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

Полный текст и комментарии »

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится

Автор saazz, история, 7 месяцев назад, По-английски

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

Полный текст и комментарии »

  • Проголосовать: нравится
  • -13
  • Проголосовать: не нравится

Автор saazz, история, 14 месяцев назад, По-английски

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.

Полный текст и комментарии »

  • Проголосовать: нравится
  • -11
  • Проголосовать: не нравится