码迷,mamicode.com
首页 >  
搜索关键字:implement strstr    ( 2381个结果
Java笔试面试题(三)
每日一句:想,都是问题;做,才是答案。构造器Constructor是否可被Override?构造器Constructor不能被继承,因此不能重写Override,但是可以被重载Overload。接口是否可继承接口?抽象类是否可实现(implement)接口?抽象类是否可继承具体类(concreteclass)?抽象类中是否可以有静态的类方法?接口可以继承接口。抽象类可以实现接口。抽象类可以继承具体
分类:编程语言   时间:2018-07-15 00:13:29    阅读次数:201
208. Implement Trie (Prefix Tree)
Implement a trie with insert, search, and startsWith methods. Example: Trie trie = new Trie(); trie.insert("apple"); trie.search("apple"); // returns ...
分类:其他好文   时间:2018-07-14 21:57:06    阅读次数:213
(Java) LeetCode 44. Wildcard Matching —— 通配符匹配
Given an input string (s) and a pattern (p), implement wildcard pattern matching with support for '?' and '*'. The matching should cover the entire in ...
分类:编程语言   时间:2018-07-14 21:00:10    阅读次数:220
Leetcode 232. Implement Queue using Stacks
class MyQueue { public: /** Initialize your data structure here. */ MyQueue() { } /** Push element x to the back of queue. */ void push(int x) { std::... ...
分类:其他好文   时间:2018-07-14 16:42:32    阅读次数:159
Leetcode 225. Implement Stack using Queues
class MyStack { public: /** Initialize your data structure here. */ MyStack() { } /** Push element x onto stack. */ void push(int x) { std::queue aux;... ...
分类:其他好文   时间:2018-07-14 16:30:22    阅读次数:103
372. Delete Node in a Linked List【LintCode java】
Description Implement an algorithm to delete a node in the middle of a singly linked list, given only access to that node. Description Description Imp ...
分类:编程语言   时间:2018-07-14 13:11:45    阅读次数:133
LeeCode from 0 —— 69. Sqrt(x)
69. Sqrt(x) Implement int sqrt(int x). Compute and return the square root of x, where x is guaranteed to be a non-negative integer. Since the return t ...
分类:其他好文   时间:2018-07-12 22:39:48    阅读次数:152
729. My Calendar I
c++代码 判断两个线段是否重复。 fast-rcnn目标检测中nms代码中有这个代码段:) Implement a MyCalendar class to store your events. A new event can be added if adding the event will no ...
分类:其他好文   时间:2018-07-08 22:11:12    阅读次数:198
(Java) LeetCode 206. Reverse Linked List —— 反转链表
Reverse a singly linked list. Example: Follow up: A linked list can be reversed either iteratively or recursively. Could you implement both? ...
分类:编程语言   时间:2018-07-08 11:15:50    阅读次数:154
341. Flatten Nested List Iterator
Given a nested list of integers, implement an iterator to flatten it. Each element is either an integer, or a list -- whose elements may also be integ ...
分类:其他好文   时间:2018-07-07 20:28:36    阅读次数:203
2381条   上一页 1 ... 41 42 43 44 45 ... 239 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!