
Counting
flyatcmu
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Relative Sort Array
Given two arraysarr1andarr2, the elements ofarr2are distinct, and all elements inarr2are also inarr1. Sort the elements ofarr1such that the relative ordering of items inarr1are the same as inarr2. Elements that don't appear inarr2should be...原创 2020-05-10 08:15:20 · 246 阅读 · 0 评论 -
Length of Last Word
Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string. If the last word does not exist, return 0. Note: A word is defi原创 2014-01-17 15:37:27 · 486 阅读 · 0 评论 -
Jewels and Stones
You're given strings J representing the types of stones that are jewels, and S representing the stones you have. Each character in S is a type of stone you have. You want to know how many of the sto...原创 2019-01-11 14:02:56 · 249 阅读 · 0 评论