首页 > TAG信息列表 > BBBBB
矩阵
小S有个n×m的字符矩阵,里面都是小写字母。 现在小S每一步可以向下或者向右走,从左上角走到右下角。现在他想让他走出的字母拼接起来字典序最小。 输入格式 第一行两个整数n,m。 接下来n行,每行长度为m的字符串,表示该矩阵。 输出格式 一个长度为n+m−1的字符串表示答案。 样例1 input【leetcode】1656. Design an Ordered Stream
题目如下: There is a stream of n (idKey, value) pairs arriving in an arbitrary order, where idKey is an integer between 1 and n and value is a string. No two pairs have the same id. Design a stream that returns the values in increasing order ofrequesterror: Unclosed quotation mark after the character string ‘}‘ ‘.
MSSQLinsert failed, JS a.replace(/[']/g,'`'); //全局替换 let a = "AAAA'BBBBB 'CCCC'" let b = a.replace("'"," ") //只替换了第一个 let d = a.replace(/[']/g,'`'); //全局替换 console.log(b) /