摘要: X city opened a new cinema, many people would like to go to this cinema. The cinema also gives out a poster indicating the movies’ ratings and descrip 阅读全文
posted @ 2018-10-29 13:12 bernieloveslife 阅读(197) 评论(0) 推荐(0)
摘要: You are given an array A of strings. Two strings S and T are special equivalent if after any number of moves, S == T. A move consists of choosing two 阅读全文
posted @ 2018-10-29 13:12 bernieloveslife 阅读(117) 评论(0) 推荐(0)
摘要: Given an integer array with even length, where different numbers in this array represent different kinds of candies. Each number means one candy of th 阅读全文
posted @ 2018-10-29 13:12 bernieloveslife 阅读(88) 评论(0) 推荐(0)
摘要: Given a positive integer N, find and return the longest distance between two consecutive 1's in the binary representation of N. If there aren't two co 阅读全文
posted @ 2018-10-29 13:12 bernieloveslife 阅读(100) 评论(0) 推荐(0)
摘要: Given a string S and a character C, return an array of integers representing the shortest distance from the character C in the string. Example 1: Inpu 阅读全文
posted @ 2018-10-29 13:12 bernieloveslife 阅读(137) 评论(0) 推荐(0)