Previously, we have shown that extremal Kerr-Newman black holes can be overcharged or overspun by a test particle, indicating possible violation of the cosmic censorship. In this paper, we consider extremal charged and rotating black holes with cosmological constants. By studying the motion of test particles, we find the following results: An extremal Reissner-Nordstrom anti-de Sitter (RN-AdS) black hole can be overcharged by a test particle but an extremal Reissner-Nordstrom de Sitter (RN-dS) black hole cannot be overcharged. We also show that both Kerr-de-Sitter (Kerr-dS) and Kerr-anti-de-Sitter (Kerr-AdS) black holes can be overspun by a test particle, implying a possible breakdown of the cosmic censorship conjecture. For the Kerr-AdS case, the overspinning requires that the energy of the particle be negative, a reminiscent of the Penrose process. In contrast to the extremal RN and Kerr black holes, in which cases the cosmic censorship is upheld, our results suggest some subtle relations between the cosmological constants and the comic censorship.