码迷,mamicode.com
首页 >  
搜索关键字:implement    ( 2013个结果
208-Implement Trie(Prefix Tree)
题目:实现一个字典树 注: 使用字典结构来存储,每层都是一个字典,存储此层所有的元素(包括字典)。每个元素存储方式也为一个字典,key为字符和一个标记end_of_word,表示该字符是否为一个单词的结束。插入操作时,遍历要插入词的每个字符,如果在字典树中找不到,则将该字符插入字典树,默认值为{}, ...
分类:其他好文   时间:2019-08-19 23:14:29    阅读次数:86
Leetcode solution 772: Basic Calculator III
Problem Statement Implement a basic calculator to evaluate a simple expression string. Implement a basic calculator to evaluate a simple expression st ...
分类:其他好文   时间:2019-08-19 13:17:04    阅读次数:67
LeetCode 232:用栈实现队列 Implement Queue using Stacks
题目: 使用栈实现队列的下列操作: push(x) 将一个元素放入队列的尾部。 pop() 从队列首部移除元素。 peek() 返回队列首部的元素。 empty() 返回队列是否为空。 Implement the following operations of a queue using stack ...
分类:其他好文   时间:2019-08-10 12:24:46    阅读次数:110
[LeetCode] 208. Implement Trie (Prefix Tree)
Implement a trie with insert, search, and startsWith methods. Example: Note: You may assume that all inputs are consist of lowercase letters a-z. All ...
分类:其他好文   时间:2019-08-10 09:32:47    阅读次数:67
[LeetCode] 709. To Lower Case
Description Implement function ToLowerCase() that has a string parameter str, and returns the same string in lowercase. Example 1: Example 2: Example ...
分类:其他好文   时间:2019-08-05 15:55:39    阅读次数:82
COMP9021,
Assignment 2COMP9021, Trimester 2, 20191. General matter1.1. Aims. The purpose of the assignment is to: design and implement an interface based on the ...
分类:其他好文   时间:2019-08-01 20:01:41    阅读次数:82
(Easy) To Lower Case LeetCode
Description Implement function ToLowerCase() that has a string parameter str, and returns the same string in lowercase. Example 1: Input: "Hello" Outp ...
分类:其他好文   时间:2019-07-30 23:18:44    阅读次数:104
第15个算法-实现 Trie (前缀树)(LeetCode)
解法代码来源 :https://blog.csdn.net/whdAlive/article/details/81084793 算法来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/implement-trie-prefix-tree 实现一个 T ...
分类:编程语言   时间:2019-07-27 12:32:11    阅读次数:89
8 String to Integer (atoi)
Implement atoi which converts a string to an integer. The function first discards as many whitespace characters as necessary until the first non white ...
分类:其他好文   时间:2019-07-16 08:24:55    阅读次数:85
2018 – 2019 年前端 JavaScript 面试题
JavaScript 基础问题 1.使以下代码正常运行: JavaScript 代码: const a = [1, 2, 3, 4, 5]; // Implement this a.multiply(); console.log(a); // [1, 2, 3, 4, 5, 1, 4, 9, 16, ...
分类:编程语言   时间:2019-07-12 15:47:38    阅读次数:202
2013条   上一页 1 ... 14 15 16 17 18 ... 202 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!