
Balanced bracket sequences
1. Overview A balanced bracket sequence is a string consisting of only brackets, such that this sequence, when inserted certain numbers and mathematical operations, gives a valid […]
1. Overview A balanced bracket sequence is a string consisting of only brackets, such that this sequence, when inserted certain numbers and mathematical operations, gives a valid […]
This is a java program to implement LCS. The longest common subsequence (LCS) problem is to find the longest subsequence common to all sequences in […]
Little Dima has two sequences of points with integer coordinates: sequence (a 1, 1), (a 2, 2), …, (a n, n) and sequence (b 1, 1), (b 2, 2), …, (b n, n). Now Dima wants to count the number of distinct sequences of points of […]
Polycarp is developing a method for transmitting $n$ integer sequences over a network. This method should support the transmission of an arbitrary number of integer […]
Dreamoon likes sequences very much. So he created a problem about the sequence that you can’t find in OEIS: You are given two integers $d, […]