程序媛詹妮弗
终身学习
摘要: Given an array consists of non-negative integers, your task is to count the number of triplets chosen from the array that can make triangles if we tak 阅读全文
posted @ 2019-05-04 07:28 程序媛詹妮弗 阅读(205) 评论(0) 推荐(0) 编辑
摘要: All DNA is composed of a series of nucleotides abbreviated as A, C, G, and T, for example: "ACGAATTCCG". When studying DNA, it is sometimes useful to 阅读全文
posted @ 2019-05-04 06:50 程序媛詹妮弗 阅读(146) 评论(0) 推荐(0) 编辑
摘要: Given a list of words and two words word1 and word2, return the shortest distance between these two words in the list. word1 and word2 may be the same 阅读全文
posted @ 2019-05-04 06:34 程序媛詹妮弗 阅读(162) 评论(0) 推荐(0) 编辑
摘要: Suppose you have a long flowerbed in which some of the plots are planted and some are not. However, flowers cannot be planted in adjacent plots - they 阅读全文
posted @ 2019-05-04 06:20 程序媛詹妮弗 阅读(242) 评论(0) 推荐(0) 编辑