AminAnvari's blog

By AminAnvari, 9 years ago, In English
  • Vote: I like it
  • +94
  • Vote: I do not like it

| Write comment?
»
9 years ago, # |
  Vote: I like it +11 Vote: I do not like it

Hello, A Secret Mission — LOJ , Min Max Roads — LOJ , LCA — SPOJ , Kth Ancestor — HackerRank

Here I found a few LCA / LCA modifications :)

  • »
    »
    7 years ago, # ^ |
      Vote: I like it -6 Vote: I do not like it

    Some basic LCA problems? Which can be solved by only using LCA? By some I mean many please! O_o

»
9 years ago, # |
  Vote: I like it +6 Vote: I do not like it

Thank you so much for taking the time to compile all these lists.

I really appreciate your work!

»
9 years ago, # |
  Vote: I like it +21 Vote: I do not like it
»
9 years ago, # |
  Vote: I like it +6 Vote: I do not like it

Thanks for gathering all problems with same tag!! I was looking for LCA ones :D

»
9 years ago, # |
  Vote: I like it +11 Vote: I do not like it

Another LCA problmes:

Qtree spoj : LCA + Heavy-light Decomposition + segment tree

372D - Весело выбирать поддерево : LCA + sorting + dfs(starting time calculating) + two_pointer (or Heavy-light Decomposition)

342E - Ксюша и дерево : LCA + Sqrt Decomposition

»
8 years ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it

A great LCA problem from codechef : TOMJERGA

»
7 years ago, # |
  Vote: I like it +9 Vote: I do not like it
»
7 years ago, # |
Rev. 3   Vote: I like it 0 Vote: I do not like it

I wrote code for 191C but I got verdict: wrong answer on test 3. please, tell to me, why my code does not works correctly. link: https://codeforces.net/contest/191/submission/39604271

»
7 years ago, # |
  Vote: I like it +3 Vote: I do not like it
»
6 years ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it

http://www.spoj.com/problems/DISQUERY/ this is problem based only on LCA. this problem is from the SPOJ. update: this problem is not based only on lca, sorry for mistake.

»
6 years ago, # |
  Vote: I like it 0 Vote: I do not like it
»
6 years ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it

https://www.hackerrank.com/contests/101hack26/challenges/sherlock-and-queries-on-the-graph (LCA + Bridge finding) :) and thank you so much for your list

»
6 years ago, # |
  Vote: I like it 0 Vote: I do not like it
»
5 years ago, # |
  Vote: I like it -22 Vote: I do not like it

Thanks for these problem list and i was waited for this

»
5 years ago, # |
  Vote: I like it +4 Vote: I do not like it

this problem from a recent round

1-Trees and Queries

»
5 years ago, # |
  Vote: I like it +9 Vote: I do not like it
»
4 years ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it

csacademy's Identifying-Infected is a LCA tagged problem. How to approach this? Sorry for necro-bumping.

  • »
    »
    4 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Answer is the number of cut vertices on the simple path between query vertices in the Block-Cut Tree of the graph. This can be found in logN time by calculating the LCA of the Block-Cut Tree.

»
2 years ago, # |
Rev. 4   Vote: I like it +5 Vote: I do not like it

LCA problem from the contest just now codeforces.com/contest/1702/problem/G2

»
2 years ago, # |
Rev. 2   Vote: I like it +3 Vote: I do not like it

Highly recommend))) 786D - Бог рэпа