自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(12)
  • 收藏
  • 关注

原创 [LintCode]Remove Element(Python)

class Solution: """ @param A: A list of integers @param elem: An integer @return: The new length after remove """ def removeElement(self, A, elem): # write your code he

2017-08-08 07:57:09 202

原创 [LintCode]Longest Common Prefix(Python)

class Solution: # @param strs: A list of strings # @return: The longest common prefix def longestCommonPrefix(self, strs): # write your code here minlen = 99999 for

2017-08-05 20:19:18 249

原创 [LintCode]Longest Common Substring(Python)

class Solution: # @param A, B: Two string. # @return: the length of the longest common substring. def longestCommonSubstring(self, A, B): # write your code here maxlength =

2017-08-05 20:10:29 554

原创 [LintCode]Anagrams(Python)

class Solution:    # @param strs: A list of strings    # @return: A list of strings    def anagrams(self, strs):        # write your code here        ret = []        strs_reag = []

2017-08-05 20:06:25 521

原创 [LintCode]strStr(C++)

class Solution {public:    /**     * Returns a index to the first occurrence of target in source,     * or -1  if target is not part of source.     * @param source string to be scanned.

2017-08-05 20:05:38 275

原创 [LintCode]Compare Strings(C++|Python)

C++ Version:class Solution {public:    /**     * @param A: A string includes Upper Case letters     * @param B: A string includes Upper Case letter     * @return:  if string A contains all

2017-08-05 20:04:25 384

原创 [LintCode]Two Strings Are Anagrams(C++|Java|Python)

C++ Version:class Solution {public:    /**     * @param s: The first string     * @param b: The second string     * @return true or false     */    bool anagram(string s, string t) {

2017-08-05 15:24:58 309

原创 [LintCode]Binary Tree Maximum Node(C++)

class Solution {public:    /**     * @param root the root of binary tree     * @return the max node     */    TreeNode* max = new TreeNode(INT_MIN);        TreeNode* maxNode(TreeNode*

2017-08-05 15:20:11 224

原创 [LintCode]Rectangle Area(Java)

public class Rectangle {    /*     * Define two public attributes width and height of type int.     */    // write your code here    private int width;    private int height;    /*

2017-08-05 15:19:05 729

原创 [LintCode]Fibonacci(Python)

class Solution:    """    @param: : an integer    @return: an ineger f(n)    """    def fibonacci(self, n):        # write your code here        ret = [0, 1]        for i in range(

2017-08-05 15:17:32 233

原创 [LintCode]Sort Integers(C++)

class Solution {public:    /**     * @param A an integer array     * @return void     */    void sortIntegers(vector& A) {        // Write your code here        int length = A.size();

2017-08-05 15:14:07 186

原创 [LintCode]Remove Linked List Elements(C++)

/** * Definition for singly-linked list. * struct ListNode { *     int val; *     ListNode *next; *     ListNode(int x) : val(x), next(NULL) {} * }; */class Solution {public:    /*

2017-08-05 15:09:25 253

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除