标签归档:leetcode

RSS feed of leetcode

[LeetCode]Parse Lisp Expression

题目描述:

LeetCode 736. Parse Lisp Expression

You are given a string expression representing a Lisp-like expression to return the integer value of.

The syntax for these expressions is given as follows.

  • An expression is either an integer, a let-expression, an ...

继续阅读

[LeetCode]Asteroid Collision

题目描述:

LeetCode 735. Asteroid Collision

We are given an array asteroids of integers representing asteroids in a row.

For each asteroid, the absolute value represents its size, and the sign represents its direction (positive meaning right, negative meaning left). Each ...

继续阅读

[LeetCode]Sentence Similarity

题目描述:

LeetCode 734. Sentence Similarity

Given two sentences words1, words2 (each represented as an array of strings), and a list of similar word pairs pairs, determine if two sentences are similar.

For example, "great acting skills" and "fine drama talent" ...

继续阅读