【LeetCode】355. Design Twitter

355. Design Twitter My Submissions QuestionEditorial Solution Total Accepted: 731 Total Submissions: 3056 Difficulty: Medium Design a simplified vers...

2016-06-14 14:23:52

阅读数 847

评论数 0

【LeetCode】357. Count Numbers with Unique Digits

357. Count Numbers with Unique Digits My Submissions QuestionEditorial Solution Total Accepted: 1190 Total Submissions: 2830 Difficulty: Medium Given...

2016-06-14 14:19:59

阅读数 647

评论数 0

缓存穿透、缓存并发、缓存失效之思路变迁

我们在用缓存的时候,不管是Redis或者Memcached,基本上会通用遇到以下三个问题: 缓存穿透缓存并发缓存失效 一、缓存穿透     注: 上面三个图会有什么问题呢? 我们在项目中使用缓存通常都是先检查缓存中是否存在,如果...

2016-05-16 11:09:19

阅读数 422

评论数 0

【LeetCode】300 Longest Increasing Subsequence

Longest Increasing Subsequence Total Accepted: 8193 Total Submissions: 26128 Difficulty: Medium Given an unsorted array of integers, find the length ...

2015-11-30 18:28:59

阅读数 520

评论数 0

【LeetCode】Game of Life

Game of Life My Submissions Question Solution  Total Accepted: 3524 Total Submissions: 11205 Difficulty: Medium According to the Wikipedia's artic...

2015-10-14 10:48:39

阅读数 2001

评论数 0

【LeetCode】Move Zeroes

Move Zeroes My Submissions Question Solution  Total Accepted: 9333 Total Submissions: 21879 Difficulty: Easy Given an array nums, write a function to...

2015-09-24 17:27:37

阅读数 1083

评论数 0

【LeetCode】Expression Add Operators

Expression Add Operators  My Submissions Question Solution  Total Accepted: 1506 Total Submissions: 8547 Difficulty: Hard Given a string that contain...

2015-09-24 17:19:02

阅读数 3494

评论数 0

【Java】JDK6和JDK7中String的substring()方法及其差异

翻译人员: 铁锚 翻译日期: 2013年11月2日 原文链接: The substring() Method in JDK 6 and JDK 7    在JDK6与JDK7这两个版本中,substring(int beginIndex, int endIndex)方法是不同的. 了解两个版本间...

2015-09-07 15:35:14

阅读数 574

评论数 0

【LeetCode】268 Missing Number

Missing Number  Total Accepted: 579 Total Submissions: 1615 My Submissions Question Solution  Given an array containing n distinct numbers taken from...

2015-08-24 10:30:15

阅读数 757

评论数 0

【LeetCode】242 Valid Anagram

Valid Anagram  Total Accepted: 4232 Total Submissions: 11283 My Submissions Question Solution  Given two strings s and t, write a function to determi...

2015-08-03 10:41:08

阅读数 1663

评论数 0

【LeetCode】240 Search a 2D Matrix II

Search a 2D Matrix II  Total Accepted: 928 Total Submissions: 2932 My Submissions Question Solution  Write an efficient algorithm that searches for...

2015-07-23 11:03:34

阅读数 453

评论数 0

【LeetCode】Python requests模拟Leetcode登陆

查看登陆参数,https://leetcode.com/accounts/login/ 通过form表单post数据。 查看登录时post的一些参数。 headers data **requests模拟登陆,代码在这里: # !/usr/bin/env python # -*- co...

2015-07-17 18:23:16

阅读数 1003

评论数 0

【LeetCode】237 Product of Array Except Self

Product of Array Except Self Total Accepted: 388 Total Submissions: 1017 My Submissions Question Solution  Given an array of n integers where n > ...

2015-07-16 10:38:20

阅读数 797

评论数 0

【LeetCode】236 Lowest Common Ancestor of a Binary Tree

Lowest Common Ancestor of a Binary Tree Total Accepted: 1207 Total Submissions: 4143 My Submissions Question Solution  Given a binary tree, find the ...

2015-07-13 17:51:14

阅读数 1321

评论数 0

【LeetCode】235 Lowest Common Ancestor of a Binary Search Tree

Lowest Common Ancestor of a Binary Search Tree Total Accepted: 3808 Total Submissions: 9820 My Submissions Question Solution  Given a binary search t...

2015-07-13 17:39:13

阅读数 974

评论数 0

【LeetCode】234 Palindrome Linked List

Palindrome Linked List Total Accepted: 1116 Total Submissions: 4295 My Submissions Question Solution  Given a singly linked list, determine if it is ...

2015-07-10 16:33:05

阅读数 3481

评论数 0

【九度】抓取九度AC所有代码以及在CSDN的解题思路链接形成文件提交至github

前言 抓取在九度AC的所有代码。 抓取每个题目在CSDN解题思路的链接地址。 输出为多个Java/C++文件。 提交至github。 抓取代码 目前题目编号为1001至1557。 从该题目编号依次遍历url。 url格式为:http://ac.jobdu.com/problem.php?pid=1...

2015-07-01 10:13:37

阅读数 893

评论数 0

【LeetCode】Basic Calculator && Basic Calculator II

1、Basic Calculator  Total Accepted: 3726 Total Submissions: 24053 My Submissions Question Solution  Implement a basic calculator to evaluate a simple...

2015-06-24 11:01:51

阅读数 3738

评论数 0

【Python】Python Requests快速入门

快速上手 迫不及待了吗?本页内容为如何入门Requests提供了很好的指引。其假设你已经安装了Requests。如果还没有, 去 安装 一节看看吧。 首先,确认一下: Requests 已安装Requests是 最新的 让我们从一些简单的示例开始吧。 发送请求 ...

2015-06-10 16:03:14

阅读数 572

评论数 1

【LeetCode】Maximal Rectangle && Maximal Square

1、Maximal Rectangle  Total Accepted: 24875 Total Submissions: 113379 My Submissions Question Solution  Given a 2D binary matrix filled with 0's and 1...

2015-06-05 17:56:28

阅读数 1042

评论数 0

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