Sara

  • Home

  • Tags

  • Categories

  • Archives

  • Search

LeetCode_Minimum Size Subarray Sum

Posted on 2019-06-03 | In LeetCode

Minimum Size Subarray Sum

Given an array of n positive integers and a positive integer s, find the minimal length of a contiguous subarray of which the sum ≥ s. If there isn’t one, return 0 instead.
(最小长度的子数组的和大于特定的值)

Read more »

LeetCode_Implement Trie (Prefix Tree)

Posted on 2019-06-03 | In LeetCode

Implement Trie (Prefix Tree)

Implement a trie with insert, search, and startsWith methods.
(实现字典树以及相关功能函数)

Read more »

LeetCode_Course Schedule

Posted on 2019-06-03 | In LeetCode

Course Schedule

There are a total of n courses you have to take, labeled from 0 to n-1. Some courses may have prerequisites, for example to take course 0 you have to first take course 1, which is expressed as a pair: [0,1]. Given the total number of courses and a list of prerequisite pairs, is it possible for you to finish all courses?
(课程清单)

Read more »

LeetCode_Reverse Linked List

Posted on 2019-06-03 | In LeetCode

Reverse Linked List

Reverse a singly linked list.
(翻转链表)

Read more »

LeetCode_Isomorphic Strings

Posted on 2019-05-12 | In LeetCode

Isomorphic Strings

Given two strings s and t, determine if they are isomorphic. Two strings are isomorphic if the characters in s can be replaced to get t. All occurrences of a character must be replaced with another character while preserving the order of characters. No two characters may map to the same character but a character may map to itself.
(判断是否为同构字符串)

Read more »

LeetCode_Number of Islands

Posted on 2019-05-11 | In LeetCode

Number of Islands

Given a 2d grid map of ‘1’s (land) and ‘0’s (water), count the number of islands. An island is surrounded by water and is formed by connecting adjacent lands horizontally or vertically. You may assume all four edges of the grid are all surrounded by water.
(求岛屿的个数)

Read more »

LeetCode_Binary Tree Right Side View

Posted on 2019-05-11 | In LeetCode

Binary Tree Right Side View

Given a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bottom.
(二叉树的右视图)

Read more »

LeetCode_House Robber

Posted on 2019-05-10 | In LeetCode

House Robber

Given a list of non-negative integers representing the amount of money of each house, determine the maximum amount of money you can rob tonight without alerting the police (the robber list cannot be adjacent).
(数组中不相邻数组成的和最大)

Read more »

Bash Script

Posted on 2019-05-10 | In Note

Linux 终端指令总结。

Read more »

LeetCode_Reverse Bits

Posted on 2019-04-16 | In LeetCode

Reverse Bits

Reverse bits of a given 32 bits unsigned integer.
(翻转2进制无符号数表示)

Read more »
1234…21

Sara Han

207 posts
4 categories
40 tags
© 2019 Sara Han
Powered by Hexo v3.8.0
|
Theme – NexT.Mist v6.4.2