leetcode
balabalayou
多学习别人,帮助更多的人学习.
展开
-
线性结构 Reversing Linked List用链表实现
原创...翻版必究...Table of ContentsProblem:Input Specification:Output Specification:Sample Input:Sample Output:Solution:Problem:Given a constantKand a singly linked listL, you...原创 2020-03-27 15:57:06 · 196 阅读 · 0 评论 -
leetcode46
https://blog.csdn.net/feliciafay/article/details/41349783题目如下:Given a collection of numbers, return all possible permutations.For example,[1,2,3] have the following permutations:[1,2,3], [1,3,2]...转载 2018-12-12 15:30:50 · 99 阅读 · 0 评论 -
leetcode刷题
week1(2018.12.7):21 30 46week2(2018.12.14):1 2 4week3(2018.12.21):3 28 76原创 2018-12-25 16:26:20 · 145 阅读 · 0 评论 -
leetcode palindromic substring回文串
leetcode Palindromic Substring 5. Longest Palindromic Substring新的改变5. Longest Palindromic Substringclass Solution {public: string longestPalindrome(string s) { //Insert '#' stri...原创 2019-04-01 21:12:49 · 121 阅读 · 0 评论 -
Leetcode Dynamic program
Dynamic program91Question:A message containing letters from A-Z is being encoded to numbers using the following mapping:‘A’ -> 1‘B’ -> 2…‘Z’ -> 26Given a non-empty string containing o...原创 2019-05-21 20:24:23 · 128 阅读 · 0 评论 -
leetcode heap
703. Kth Largest Element in a Stream#include <functional>#include <queue>#include <queue>#include <vector>#include <iostream>#include <memory>using namespace...原创 2019-08-09 16:04:38 · 181 阅读 · 0 评论