码迷,mamicode.com
首页 >  
搜索关键字:e pig and palindrome    ( 2194个结果
[LC] 131. Palindrome Partitioning
Given a string s, partition s such that every substring of the partition is a palindrome. Return all possible palindrome partitioning of s. Example: I ...
分类:其他好文   时间:2020-02-17 12:18:03    阅读次数:62
Codeforces 1304B. Longest Palindrome
根据数据范围,暴力可以解决,对每一个串,找与其互为回文的串,或者判断自身是否为回文串,然后两两将互为回文的串排列在头尾,中间放且只能最多放一个自身为回文串的串,因为题目说每个串都是不同的 #include<bits/stdc++.h> using namespace std; #define low ...
分类:其他好文   时间:2020-02-16 14:54:52    阅读次数:85
12、kubernetes之ingress及Ingress Controller
一、概念 ClusterIP:例如svc所分配的ip地址 NodePort:k8s集群物理机机通信地址,client NodeIP:NodePort ClusterIP:ServicePort PodIP:containerPort No ClusterIP:Headless Service ,Se ...
分类:Web程序   时间:2020-02-14 20:55:29    阅读次数:84
leetcode 125. Valid Palindrome
题目内容 Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. Note: For the purpose of this probl ...
分类:其他好文   时间:2020-02-14 12:47:11    阅读次数:54
leetcode 234. Palindrome Linked List
题目内容 Given a singly linked list, determine if it is a palindrome. Example: 分析过程 题目归类: 链表反转,fast/slow双指针法 题目分析: 这道题归到easy其实是不对的,应该归到medium,因为如果要考虑O(n)时 ...
分类:其他好文   时间:2020-02-13 15:00:47    阅读次数:64
1328破坏回文串
题目:给你一个回文字符串 palindrome ,请你将其中 一个 字符用任意小写英文字母替换,使得结果字符串的字典序最小,且 不是 回文串。请你返回结果字符串。如果无法做到,则返回一个空串。链接:https://leetcode-cn.com/problems/break-a-palindrome ...
分类:其他好文   时间:2020-02-13 00:29:00    阅读次数:68
Kubernetes数据持久化之Storage Class(存储类)自动创PV
通过博文Kubernetes的存储之Volume可以了解到Kubernets实现数据持久化的流程为:搭建NFS底层存储——>创建PV——>创建PVC——>创建pod最终将pod中的container实现数据的持久化!从上述流程中,看似没有什么问题,但是仔细研究就会发现:PVC在向PV申请存储空间时,是根据指定PV的名称、访问模式、容量大小来决定具体向哪个PV申请空间的。打比方说:
分类:Web程序   时间:2020-02-10 18:20:07    阅读次数:81
Valid Palindrome III
Given a string s and an integer k, find out if the given string is a K-Palindrome or not. A string is K-Palindrome if it can be transformed into a pal ...
分类:其他好文   时间:2020-02-08 10:14:38    阅读次数:74
[leetcode]Shortest Palindrome
O(n^2)的方法,最后一个case超时。需要用kmp方法或者manacher方法才能O(n),先忽略了。 class Solution: def isPalindrome(self, sub: str) -> bool: for i in range(len(sub) // 2): if sub[ ...
分类:其他好文   时间:2020-02-07 18:29:59    阅读次数:48
Leetcode 9. Palindrome Number
Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward. Example 1: Input: 121Output: true ...
分类:其他好文   时间:2020-02-06 20:03:07    阅读次数:83
2194条   上一页 1 ... 9 10 11 12 13 ... 220 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!