辛西亞的技能樹


  • Categories

  • Tags

  • Archives

  • About

  • Search

【LeetCode】0189. Rotate Array

2018-12-21 | 面試刷題 |

Given an array, rotate the array to the right by k steps, where k is non-negative.

Read more »

【LeetCode】0140. Word Break II

2018-12-21 | 面試刷題 |

Given a non-empty string s and a dictionary wordDict containing a list of non-empty words, add spaces in s to construct a sentence where each word is a valid dictionary word. Return all such possible sentences.

Read more »

【LeetCode】0139. Word Break

2018-12-21 | 面試刷題 |

Given a non-empty string s and a dictionary wordDict containing a list of non-emptywords, determine if s can be segmented into a space-separated sequence of one or more dictionary words.

Read more »

【LeetCode】0032. Longest Valid Parentheses

2018-12-21 | 面試刷題 |

Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring.

Read more »

【LeetCode】0044. Wildcard Matching

2018-12-20 | 面試刷題 |

Given an input string (s) and a pattern (p), implement wildcard pattern matching with support for '?' and '*'.

1
2
'?' Matches any single character.
'*' Matches any sequence of characters (including the empty sequence).

The matching should cover the entire input string (not partial).

Note:

  • s could be empty and contains only lowercase letters a-z.
  • p could be empty and contains only lowercase letters a-z, and characters like ? or *.
Read more »

【LeetCode】0020. Valid Parentheses

2018-12-20 | 面試刷題 |

Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.

Read more »

【LeetCode】0002. Add Two Numbers

2018-12-20 | 面試刷題 |

You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a linked list.

Read more »

【LeetCode】0175. Combine Two Tables

2018-12-19 | 面試刷題 |

Write a SQL query for a report that provides the following information for each person in the Person table, regardless if there is an address for each of those people: FirstName, LastName, City, State

Read more »

【LeetCode】0010. Regular Expression Matching

2018-12-19 | 面試刷題 |

Given an input string (s) and a pattern (p), implement regular expression matching with support for '.' and '*'.

1
2
'.' Matches any single character.
'*' Matches zero or more of the preceding element.

The matching should cover the entire input string (not partial).

Note:

  • s could be empty and contains only lowercase letters a-z.
  • p could be empty and contains only lowercase letters a-z, and characters like . or *.
Read more »

【LeetCode】0006. ZigZag Conversion

2018-12-19 | 面試刷題 |

The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility)

1
2
3
P   A   H   N
A P L S I I G
Y   I   R

And then read line by line: "PAHNAPLSIIGYIR"

Read more »
1 … 20 21 22 23
辛西亞.Cynthia

辛西亞.Cynthia

自己整理過才是自己的

226 posts
20 categories
121 tags
RSS
© 2018 - 2025 辛西亞.Cynthia
Powered by Jekyll
Theme - NexT.Mist