自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

浮生琴弦

ONE is all.

  • 博客(155)
  • 收藏
  • 关注

原创 PHP Web Development with Laravel

LAMP StackLinuxApacheMySQLPHP

2016-12-01 16:59:43 309

原创 Technical Interview Questions

算法面试题集锦。Google, Indeed等公司面试面经。

2016-11-12 10:25:59 527

原创 Python Web Development with Flask

1. Flask1.1 How Flask Routing Works…2. Flask-Admin…3. Flask-SQLAlchemy…AlembicQ1: How to clear history and run all migrations from the beginning?A1: Following works in Vagrant, dropdb SNEAKERBANK crea

2016-11-10 19:29:57 439

原创 [Git] Common Usage

rebaseBefore: “This branch is 3 commits behind octantis:master.” git fetch upstream git rebase upstream/master git push origin masterAfter: “This branch is even with octantis:master.”Screens

2016-10-24 10:08:01 799

原创 解决Gradio离线部署,无法正常加载页面的问题

运行时的UI使用的前端代码里,有对互联网资源的引用,如果在离线环境下部署(比如公司内网),会无法启动成功,看不到正常的前端页面。PyPi地址:https://pypi.org/project/gradio-offline/3.28.3.1/修改的,目的是为了支持离线部署,API不变。

2023-05-22 15:42:06 2954 2

原创 Nginx反向代理与负载均衡

本教程讲述 Nginx 的关键应用场景之反向代理与负载均衡。

2023-04-27 16:39:18 1798

原创 Nginx常见应用场景

本文介绍 Nginx 的常见应用场景,比如代理静态文件和应用程序的后端服务。

2023-04-27 15:33:38 709

原创 Nginx基本配置

本教程讲述Nginx的基本配置和操作。

2023-04-27 09:17:53 945

原创 Nginx简介与安装

Nginx简介与安装。

2023-04-26 14:18:28 985

原创 《Nginx实战教程》专栏介绍

《Nginx实战教程》专栏介绍。

2023-04-26 13:55:51 340

原创 LeetCode #1996. The Number of Weak Characters in the Game

[LeetCode]1996. The Number of Weak Characters in the Gameclass Solution: def numberOfWeakCharacters(self, properties: List[List[int]]) -> int: """ Time Complexity: O(n * log(n)) Space Complexity: O(1) Where:

2021-09-09 19:54:50 92

原创 LeetCode 487. Max Consecutive Ones II

LeetCode 487. Max Consecutive Ones II

2017-01-15 21:19:06 1063

原创 LeetCode 485. Max Consecutive Ones

LeetCode 485. Max Consecutive Ones

2017-01-15 21:16:20 443

原创 LeetCode 482. License Key Formatting

LeetCode 482. License Key Formatting

2017-01-08 22:25:31 578

原创 LeetCode 456. 132 Pattern

LeetCode 456. 132 Pattern

2017-01-08 22:21:53 283

原创 LeetCode 476. Number Complement

LeetCode 476. Number Complement

2017-01-08 21:32:53 833

原创 LeetCode 481. Magical String

LeetCode 481. Magical String

2017-01-08 21:15:05 704

原创 LeetCode 480. Sliding Window Median

LeetCode 480. Sliding Window Median

2017-01-08 21:10:19 1143

原创 LeetCode 473. Matchsticks to Square

LeetCode 473. Matchsticks to Square

2016-12-18 21:29:16 846

原创 LeetCode 472. Concatenated Words

LeetCode 472. Concatenated Words

2016-12-18 21:24:07 2666

原创 LeetCode 477. Total Hamming Distance

LeetCode 477. Total Hamming Distance

2016-12-18 11:44:15 328

原创 LeetCode 461. Hamming Distance

LeetCode 461. Hamming Distance

2016-12-18 11:41:22 801

原创 LeetCode 474. Ones and Zeroes

LeetCode 474. Ones and Zeroes

2016-12-11 13:54:24 832

原创 LeetCode 475. Heaters

LeetCode 475. Heaters

2016-12-11 13:24:11 765

原创 LeetCode 468. Validate IP Address

LeetCode 468. Validate IP Address

2016-12-11 11:29:20 600

原创 PHP Type Hinting (类型提示)

概述 从PHP5开始,我们可以使用类型提示来指定定义函数时,函数接收的参数类型。如果在定义函数时,指定了参数的类型,那么当我们调用函数时,如果实参的类型与指定的类型不符,那么PHP会产生一个致命级别的错误(Catchable fatal error)。http://www.gy0929.com/wz/1368.html

2016-12-09 11:07:25 1504

原创 LeetCode 434. Number of Segments in a String

Problem StatementCount the number of segments in a string, where a segment is defined to be a contiguous sequence of non-space characters.For example,Input: "Hello, my name is John"Output: 5Solutioncla

2016-12-04 11:59:59 538

原创 LeetCode 463. Island Perimeter

Problem Statement(Source) You are given a map in form of a two-dimensional integer grid where 1 represents land and 0 represents water. Grid cells are connected horizontally/vertically (not diagonally)

2016-12-03 11:34:50 192

转载 Python中的多继承

Python和C++一样,支持多继承。概念虽然容易,但是困难的工作是如果子类调用一个自身没有定义的属性,它是按照何种顺序去到父类寻找呢,尤其是众多父类中有多个都包含该同名属性。class P1 #(object): def foo(self): print 'p1-foo' class P2 #(object): def foo(self):

2016-11-25 12:01:04 440

原创 [TODO]LeetCode 37. Sudoku Solver

Problem Statement(Source) Write a program to solve a Sudoku puzzle by filling the empty cells.Empty cells are indicated by the character '.'.You may assume that there will be only one unique solution.

2016-11-15 22:47:24 281

原创 LeetCode 282. Expression Add Operators

Problem Statement(Source) Given a string that contains only digits 0-9 and a target value, return all possibilities to add binary operators (not unary) +, -, or * between the digits so they evaluate to

2016-11-14 21:32:35 346

原创 LeetCode 327. Count of Range Sum

Problem Statement(Source) Given an integer array nums, return the number of range sums that lie in [lower, upper] inclusive. Range sum S(i, j) is defined as the sum of the elements in nums between ind

2016-11-14 08:57:27 425

原创 LeetCode 432. All O`one Data Structure

Problem Statement(Source) Implement a data structure supporting the following operations:Inc(Key) - Inserts a new key with value 1. Or increments an existing key by 1. Key is guaranteed to be a non-em

2016-11-13 23:32:10 874

原创 LeetCode 381. Insert Delete GetRandom O(1) - Duplicates allowed

Problem Statement(Source) Design a data structure that supports all following operations in average O(1) time.Note: Duplicate elements are allowed.insert(val): Inserts an item val to the collection.r

2016-11-13 23:02:18 246

原创 LeetCode 126. Word Ladder II

Problem Statement(Source) Given two words (beginWord and endWord), and a dictionary’s word list, find all shortest transformation sequence(s) from beginWord to endWord, such that:Only one letter can b

2016-11-13 21:42:05 706

原创 LeetCode 127. Word Ladder

(Source) Given two words (beginWord and endWord), and a dictionary’s word list, find the length of shortest transformation sequence from beginWord to endWord, such that:Only one letter can be changed

2016-11-13 19:00:07 271

原创 LeetCode 44. Wildcard Matching

Problem Statement(Source) Implement wildcard pattern matching with support for '?' and '*'.'?' Matches any single character.'*' Matches any sequence of characters (including the empty sequence).The ma

2016-11-13 15:55:31 242

原创 LeetCode 456. 132 Pattern

Problem Statement(Source) Given a sequence of n integers a1,a2,...,ana_1, a_2, ..., a_n, a 132 pattern is a subsequence ai,aj,aka_i, a_j, a_k such that i < j < k and ai<ak<aja_i < a_k < a_j. Design an

2016-11-13 14:26:15 917

原创 LeetCode 454. 4Sum II

Problem Statement(Source) Given four lists A, B, C, D of integer values, compute how many tuples (i, j, k, l) there are such that A[i] + B[j] + C[k] + D[l] is zero.To make problem a bit easier, all A,

2016-11-13 14:10:41 866

原创 LeetCode 459. Repeated Substring Pattern

Problem Statement(Source) Given a non-empty string check if it can be constructed by taking a substring of it and appending multiple copies of the substring together. You may assume the given string co

2016-11-13 11:37:19 917

空空如也

空空如也

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

TA关注的人

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