ProgrammingHard
The longest common subsequence of "abc" and "ac" has length?
- A. 1
- B. 3
- C. 2
- D. 0
Correct answer: C. 2
The subsequence ac appears in both strings, and no longer common subsequence exists.
More C Programming questions
- The sum of the entries of row 4 of Pascal's triangle (row 0 at the top) is what?
- How many 1s are on the main diagonal of a 4 x 4 identity matrix?
- printf("%d", builtinpopcount(1023)); Is this a portable C expression? What does it mean for the count of 1 bits in 1023?
- The lowest bit that is zero in x = 0b1011 is isolated by ~x & (x + 1). What value does this give?
- With 16-bit unsigned arithmetic, (65535 x 2) & 0xFFFF is what?
- How many multiples of 4 lie between 1 and 100 inclusive?