KsGin's Blog

有没有那么一丝可能。


  • 首页

  • 标签

  • 归档

  • 搜索

Reverse-Words-in-a-String

发表于 2018-09-13 | 更新于: 2018-09-13

题目地址

LeetCode#151 Reverse Words in a String

题目描述

  Given an input string, reverse the string word by word.

阅读全文 »

Find-and-Replace-Pattern

发表于 2018-09-04 | 更新于: 2018-09-04

题目地址

LeetCode#890 Find and Replace Pattern

题目描述

  You have a list of words and a pattern, and you want to know which words in words matches the pattern.

  A word matches the pattern if there exists a permutation of letters p so that after replacing every letter x in the pattern with p(x), we get the desired word.

  (Recall that a permutation of letters is a bijection from letters to letters: every letter maps to another letter, and no two letters map to the same letter.)

  Return a list of the words in words that match the given pattern.

  You may return the answer in any order.

阅读全文 »

Top-K-Frequent-Words

发表于 2018-09-03 | 更新于: 2018-09-04

题目地址

LeetCode#692 Top K Frequent Words

题目描述

  Given a non-empty list of words, return the k most frequent elements.

  Your answer should be sorted by frequency from highest to lowest. If two words have the same frequency, then the word with the lower alphabetical order comes first.

阅读全文 »

【C++学习笔记】1-开坑

发表于 2018-08-21 | 更新于: 2018-08-22

开坑

  记录自己学习 《 Inside The C++ Object Model 》,《 More Effective C++ 》,《 STL 源码剖析 》等书籍的笔记,不定期更新。

Binary-Gap

发表于 2018-07-19 | 更新于: 2018-08-22

题目地址

LeetCode#868 Binary Gap

题目描述

  Given a positive integer N, find and return the longest distance between two consecutive 1’s in the binary representation of N.

  If there aren’t two consecutive 1’s, return 0.

阅读全文 »
12…46
KsGin

KsGin

游戏程序员/计算机图形学/Unity/西山居搬砖

226 日志
16 标签
GitHub E-Mail Google Twitter
© 2018 KsGin @ 2018
0%