码迷,mamicode.com
首页 >  
搜索关键字:c reverse array stri    ( 35258个结果
力扣#5 最长回文子串
1 class Solution { 2 public String longestPalindrome(String s) { 3 if(s.equals("")) return ""; 4 String origin = s; 5 String reverse = new StringBuffe ...
分类:其他好文   时间:2020-12-14 13:43:53    阅读次数:4
typeScript与JavaScript 数据类型
JS 数据类型 JS数据类型:JS的基本类型和引用类型有哪些呢? 基本类型(单类型):除Object。 String、Number、boolean、null、undefined symbol、bigInt 引用类型:object。里面包含的 function、Array、Date。 ES6 中新增了 ...
分类:编程语言   时间:2020-12-14 13:41:21    阅读次数:6
nginx从安装到配置
一、简介 官方网站为:http://nginx.org/ 。它是一款免费开源的高性能 HTTP 代理服务器及反向代理服务器(Reverse Proxy)产品,同时它还可以提供 IMAP/POP3 邮件代理服务等功能。它高并发性能很好,官方测试能够支撑 5 万的并发量;运行时内存和 CPU 占用率低, ...
分类:其他好文   时间:2020-12-14 13:03:02    阅读次数:3
python测试开发django(12)--ORM查询表结果
前言 django查询数据库的方法很多,不同的方法返回的结果也不太一样,本篇详细讲解关于查询的13个方法 返回对象是对象列表的:all(),filter(),exclude(),order_by(),reverse(),values(),values_list(),distinct() 返回结果是对 ...
分类:编程语言   时间:2020-12-14 12:54:22    阅读次数:5
LeetCode125. 验证回文串
一、题目描述 二、解法 思路1:双指针。 思路2:reverse后看是否相等。 class Solution { public boolean isPalindrome(String s) { if (s == null) return true; /** * 方法1:双指针 */ char[] c ...
分类:其他好文   时间:2020-12-11 12:00:14    阅读次数:3
基础篇:JAVA.Stream函数,优雅的数据流操作
前言 平时操作集合数据,我们一般都是for或者iterator去遍历,不是很好看。java提供了Stream的概念,它可以让我们把集合数据当做一个个元素在处理,并且提供多线程模式 流的创建 流的各种数据操作 流的终止操作 流的聚合处理 并发流和CompletableFuture的配合使用 关注公众号 ...
分类:编程语言   时间:2020-12-11 11:59:25    阅读次数:7
module2-01-数组的基本使用
数组的基本使用 一、数组概念 所谓数组(Array),就是将多个元素(通常是同一类型)按一定顺序排列放到一个集合中,那么这个集合我们就称之为数组 数组的定义 数组式一组有序的数据集合,内部可以存放多个数据,不限制数据类型(嵌套另外一个数组),并且长度可以动态调整 创建方式:[](字面量),new A ...
分类:编程语言   时间:2020-12-10 11:38:47    阅读次数:19
[LeetCode] 79. Word Search(单词查找)
Difficulty: Medium Related Topics: Array, Backtracking Link: https://leetcode.com/problems/word-search/ Description Given an m x n board and a word, f ...
分类:其他好文   时间:2020-12-10 11:30:28    阅读次数:11
220. Contains Duplicate III(核心:set数组有序/桶排序)
Given an array of integers, find out whether there are two distinct indices i and j in the array such that the absolute difference between nums[i] and ...
分类:编程语言   时间:2020-12-10 11:13:48    阅读次数:6
数组中元素求和,以及找出数组中组大的元素
利用数组求和,以及找出数组中组大的元素 //数组使用 public class ArrayDemo03 { public static void main(String[] args) { int[] arrays = {1,2,3,4,5}; for (int i = 0; i <arrays.l ...
分类:编程语言   时间:2020-12-10 11:09:36    阅读次数:3
35258条   上一页 1 ... 40 41 42 43 44 ... 3526 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!