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

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

I didn't understand what paint(v) means. Can someone please explain me. Also I didn't understand the editorial solution of this problem. Can't we just count unconnected black ans white components and output min of them Problem link Thanks in advance!

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

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

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

Can anyone solve this question? It came in intuit OA and I was not able to solve it (my solution gave tle). (https://leetcode.com/discuss/interview-question?currentPage=1&orderBy=hot&query=)

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

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

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

Hello Guys! I'm having a hard time solving problem D of typedb forces 2023 (https://codeforces.com/contest/1787/problem/D). I didn't understand the editorial too. Pls help me with this problem. Also suggest me some problems on graphs (not dfs or bfs kind) like on topo sort, undirected graph ,DSUs ,MST ,cycles etc. Thanks Guys in advance.

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

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