摘要: Given a sorted (in ascending order) integer array nums of n elements and a target value, write a function to search target in nums. If target exists, 阅读全文
posted @ 2020-05-15 08:57 Schwifty 阅读(109) 评论(0) 推荐(0)
摘要: 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 @ 2020-05-15 08:39 Schwifty 阅读(102) 评论(0) 推荐(0)
摘要: Implement a trie with insert, search, and startsWith methods. Example: Trie trie = new Trie(); trie.insert("apple"); trie.search("apple"); // returns 阅读全文
posted @ 2020-05-15 01:26 Schwifty 阅读(151) 评论(0) 推荐(0)