上一页 1 ··· 264 265 266 267 268 269 270 271 272 ··· 477 下一页
摘要: Given a list of integers, write a function that returns the largest sum of non-adjacent numbers. Numbers can be 0 or negative. For example, [2, 4, 6, 阅读全文
posted @ 2019-03-18 19:32 Zhentiw 阅读(414) 评论(0) 推荐(0)
摘要: We can treat Angular Element as each standlone lib and compile each Angular element spreatly. Tool we are using to compile Angular element is 'ngx-bui 阅读全文
posted @ 2019-03-18 16:20 Zhentiw 阅读(1092) 评论(0) 推荐(0)
摘要: Implement an autocomplete system. That is, given a query string s and a set of all possible query strings, return all strings in the set that have s a 阅读全文
posted @ 2019-03-17 18:10 Zhentiw 阅读(409) 评论(0) 推荐(0)
摘要: For example we have an array of words: What is the best data structure to store the data and easy for search? We can use Trie data structure, it is a 阅读全文
posted @ 2019-03-17 04:29 Zhentiw 阅读(263) 评论(0) 推荐(0)
摘要: What we are going to do in this post, is to build a random number generator. As you might know that Javascript provides Math.random(), but the problem 阅读全文
posted @ 2019-03-16 20:07 Zhentiw 阅读(250) 评论(0) 推荐(0)
摘要: For example we have array of meeting objects: For a day, 8 hours, we want to take as any meetings as possible: You should write function 'optimizeMeet 阅读全文
posted @ 2019-03-15 21:35 Zhentiw 阅读(1418) 评论(0) 推荐(0)
摘要: .bash_profile is a file that bash invokes (or more technically sources) before the start of a new bash session. In .bash_profile, we have the opportun 阅读全文
posted @ 2019-03-14 18:00 Zhentiw 阅读(340) 评论(0) 推荐(0)
摘要: For example we have the array like this: First step is using Counting sort for last digit, in our example is: Then sort according to the last digit: T 阅读全文
posted @ 2019-03-14 15:45 Zhentiw 阅读(341) 评论(0) 推荐(0)
摘要: A unival tree (which stands for "universal value") is a tree where all nodes under it have the same value. Given the root to a binary tree, count the 阅读全文
posted @ 2019-03-13 20:54 Zhentiw 阅读(467) 评论(0) 推荐(0)
摘要: For a menu item, when we tab onto it, we want this element get 'focus' event, so that the submenu will show up. In the post, we will see how to achiev 阅读全文
posted @ 2019-03-13 16:29 Zhentiw 阅读(241) 评论(0) 推荐(0)
上一页 1 ··· 264 265 266 267 268 269 270 271 272 ··· 477 下一页