首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏我是业余自学C/C++的

    Pointers and Strings

    char flower[10] = 'rose'; cout<<flower<<"s are red\n"; The name of an array is the address of its first element,so flower in the cout statment is the address of the char element containing the character. The cout object assumes that the address of a char

    49140发布于 2018-05-28
  • 来自专栏SnailTyan

    Isomorphic Strings

    1. Description 2. Solution class Solution { public: bool isIsomorphic(string s, string t) {

    53610发布于 2019-05-25
  • 来自专栏计算机视觉理论及其实现

    Unicode strings

    tf.strings.unicode_encode:将代码点向量转换为编码的字符串标量。 tf.strings.unicode_transcode:将已编码的字符串标量转换为不同的编码。 encode('UTF-8') num_bytes = tf.strings.length(thanks).numpy() num_chars = tf.strings.length(thanks, unit (thanks, pos=7, len=1, unit='UTF8_CHAR').numpy()) b'\xf0\x9f\x98\x8a' Split Unicode strings tf.strings tf.strings方法。unicode_decode_with_offsets类似于unicode_decode,只是它返回第二个张量,其中包含每个字符的起始偏移量。 codepoints, offsets = tf.strings.unicode_decode_with_offsets(u"???"

    2.9K20编辑于 2022-09-30
  • 来自专栏code人生

    Redis Strings

    基础命令 获取、设置Strings •SET 存储一个字符串变量。•SETNX 只有键值不存在时才会存储字符串变量。可用于实现锁。•GET 查询字符串变量。 更多 •Redis Strings Explained[6]是一段简短而全面的关于Redis字符串的视频解释。•Redis University's RU101[7]详细介绍了Redis字符串。 mengbin92[11] cnblogs: 恋水无意[12] 腾讯云开发者社区:孟斯特[13] References [1] 这里: https://redis.io/docs/data-types/strings 4] 哈希: https://redis.io/docs/data-types/hashes [5] JSON: https://redis.io/docs/stack/json [6] Redis Strings

    36810编辑于 2024-01-23
  • 来自专栏Don的成长史

    Composing squared strings

    We are given two n-squared strings.

    66720发布于 2019-11-08
  • 来自专栏算法修养

    LeetCode 43 Multiply Strings

    题目 用字符串模拟两数相乘。 在纸上模拟一下小学时学的算术乘法,就知道怎么做了。 c++ class Solution { public: int ans[10005]; string multiply(string num1, string num2) { if(num1=="0"||num2=="0") return "0"; int pos=0; int start=0;

    65230发布于 2019-08-20
  • 来自专栏Go学习

    Go标准库:strings

    Go 语言的 strings 包是标准库中的一个重要部分,专门用于操作字符串。它提供了丰富的字符串处理函数,涵盖了查找、比较、替换、分割、拼接、修剪等操作。 在 Go 语言中,字符串是不可变的,strings 包提供的函数都不会修改原始字符串,而是返回新的字符串。1. func NewReader(s string) *strings.Reader:返回一个 *strings.Reader,该 Reader 实现了 io.Reader、io.ReaderAt、io.Seeker

    43410编辑于 2024-08-11
  • 来自专栏代码洁癖患者

    Redis命令详解:Strings

    String类型是Redis中比较常用的类型,因此,和String相关的命令也比较多

    70820发布于 2020-03-11
  • 来自专栏Pythonista

    Golang之strings

    package main import ( "fmt" "strings" ) func main() { Count计算 sep在s中的非重叠个数 func Count b := strings.Contains(s, "!") b := strings.ContainsRune(s, '\n') fmt.Println(b) //false b = strings.ContainsRune(s, '超') b := strings.IndexAny(s, "abc") fmt.Println(b) //-1 b = strings.IndexAny(s, "") fmt.Println b:=strings.LastIndexAny(s,"abc") fmt.Println(b)//-1 b=strings.LastIndexAny(s,"世") fmt.Println

    78320发布于 2018-08-31
  • 来自专栏入门小站

    linux之strings命令

    strings 命令是二进制工具集 GNU Binutils 的一员,用于打印文件中可打印字符串,strings命令在对象文件或二进制文件中查找可打印的字符串。 strings命令对识别随机对象文件很有用。 ,B,L} :选择字符大小和排列顺序:s = 7-bit, S = 8-bit, {b,l} = 16-bit, {B,L} = 32-bit @ :读取中选项 列出ls中所有的ASCII文本: > strings 查看某一个字符串属于哪个文件 > cd /usr/bin && strings -f * | grep "name" 查看glibc支持的版本 strings /lib64/libc.so.6 | grep > strings -s / ls | more /lib64/ld-linux-x86-64.so.2/ ... $8H/T$@H/D$@H/D$@H/=u|!

    1.2K00发布于 2021-11-23
  • 来自专栏偏前端工程师的驿站

    ES6 Features系列:Template Strings & Tagged Template Strings

    What is Template Strings?   一言以蔽之,Template Strings就是让我们减少字符串手工拼接的工作量。   2.1. What is Tagged Template Strings?   从上文我们了解到Template Strings是以整体为单位进行即时计算,也就是说留给我们的自主操控能力是十分有限的。 其实Tagged Template Strings实质上是对Template Strings进行Tokenize操作,从而细化我们的可操作粒度。而词法类型分为 字符串 和 表达式占位符的运算结果。 <DOMString>}strings.raw属性 操作strings中token的结果,也就是说strings.raw属性将对控制符进行转义从而实现按照普通字符输出。    3.1. Tagge Template Strings的语法是Template Strings紧跟在Tagged Function后面,两者间不能有空格或制表符等。      

    1.1K70发布于 2018-01-18
  • 来自专栏ACM小冰成长之路

    POJ-2406-Power Strings

    本文讨论了如何使用字符串的动力学性质来研究字符串的复杂度。首先,作者介绍了字符串动力学的概念和性质,并说明如何通过计算字符串的动力学性质来研究字符串的复杂度。接着,作者详细讲解了如何使用字符串的动力学性质来研究字符串的复杂度,包括计算字符串的动力学性质的方法和步骤。最后,作者通过一个示例来说明如何使用字符串的动力学性质来研究字符串的复杂度,并给出了计算字符串的动力学性质的具体方法和步骤。

    56260发布于 2018-01-09
  • 来自专栏ReganYue's Blog

    【Go】标准库strings

    (strings.Contains(str1,str2)) fmt.Println(strings.ContainsAny(str1,str2)) fmt.Println(strings.ContainsRune (strings.ContainsRune(str1,0x0068)) fmt.Println(strings.Index(str1,"llo")) fmt.Println(strings.IndexAny (str1,"aoane")) fmt.Println(strings.ToLower(str1)) fmt.Println(strings.ToUpper(str1)) fmt.Println (strings.Title(str1)) fmt.Println(strings.Compare("abc","cde")) fmt.Println(strings.Compare("cde", (strings.TrimSuffix("Hello","qqllo")) fmt.Println(strings.TrimLeft("Hello","ahH")) fmt.Println(strings.Trim

    37310发布于 2021-09-16
  • 来自专栏Golang开发

    Golang包——strings

    = nil { t.Log(err) } t.Log(n) } strings.Builder 已存在的内容不可变,但可以拼接更多的内容; 减少了内存分配和内容拷贝的次数 strings.Reader Reader 类型 看到名字就能猜到,这是实现了 io 包中的接口。 or < 0(前一个读取的 rune 索引位置) } 可见 Reader 结构没有导出任何字段,而是提供一个实例化方法: func NewReader(s string) *Reader sr := strings.NewReader

    56020发布于 2019-05-29
  • 来自专栏MikeC's Blog

    【题解】Alphabetical Strings

    Strings that can be obtained in that way are alphabetical. For example, the following strings are alphabetical: "a", "ba", "ab", "bac" and "ihfcbadeg". The following strings are not alphabetical: "z", "aa", "ca", "acb", "xyz" and "ddcba". You can output YES and NO in any case (for example, strings yEs, yes, Yes and YES will be recognized

    48710编辑于 2022-09-21
  • 来自专栏ypw

    The Fair Nut and Strings(思维)

    题意:在所有长度为n,字典序在s和t的,只有’a’,'b’组成的字符串中,选取k个,然后让他们前缀组成的集合最大。

    43940发布于 2021-05-18
  • 来自专栏流川疯编写程序的艺术

    leetcode 205 Isomorphic Strings

    Given two strings s and t, determine if they are isomorphic. Two strings are isomorphic if the characters in s can be replaced to get t.

    57310发布于 2019-01-18
  • 来自专栏计算机视觉与深度学习基础

    Leetcode 43 Multiply Strings

    Given two numbers represented as strings, return multiplication of the numbers as a string.

    62470发布于 2018-01-12
  • 来自专栏Reck Zhang

    ACMSGURU 347 - Join the Strings

    Join the Strings Problem Description His Royal Highness King of Berland Berl XV was a very wise man and The following N lines contain N strings, one string per line. Output Print the SLC of the given N strings to the output file as a single line. (n); for(int i = 0; i < n; i++) { std::cin >> strings[i]; } std::sort(strings.begin const auto& string : strings) { std::cout << string; } return 0; }

    38540发布于 2021-08-11
  • 来自专栏datartisan

    Python基础篇 strings 01

    python基础, strings 获取字符修改字符? mainStr = "Hello, This is a sample string" ...: ...: ''' ...: Replace a set of multiple sub strings ...: def replaceMultiple(mainString, toBeReplaces, newString): ...: # Iterate over the strings ...: ...: return mainString ...: ...: ''' ...: Replace multiple characters / strings

    50820发布于 2019-12-26
领券