码迷,mamicode.com
首页 >  
搜索关键字:char s    ( 35907个结果
【leetcode】转变日期格式
char * reformatDate(char * date){ int len = strlen(date); int i,j=0; char* str = (char*)calloc(len*2,sizeof(char)); char* arr[] = {"Jan","01","Feb","0 ...
分类:其他好文   时间:2020-09-17 20:28:40    阅读次数:42
C语言代码第二天
数据类型 代码: #include <stdio.h> #include <string.h> #include <math.h> #include <stdlib.h> int main() { int i = 4; double d = 4.0; char s[] = "HackerRank " ...
分类:编程语言   时间:2020-09-17 20:00:07    阅读次数:39
【leetcode】删除最外层的括号
char * removeOuterParentheses(char * S){ int len = strlen(S),count=1,n=0; char* ret = (char*)calloc(len,sizeof(char*)); for (int i=1; i<len; i++) { (S ...
分类:其他好文   时间:2020-09-17 19:23:34    阅读次数:21
自定义函数实现strcpy拷贝字符串
voidmystrcpy(char*arr1,char*arr2){while(*arr2!=‘\0‘){*arr2=*arr1;arr2++;arr1++;}*arr2=*arr1;//把\0拷贝过去}intmain(){chararr1[]="$$$$$$$$";chararr2[]="bit";mystrcpy(arr1,arr2);printf("%s\n",arr1);return0;}
分类:其他好文   时间:2020-09-17 19:19:21    阅读次数:34
Mysql常用函数——字符串函数(上)
在python、C语言、java等编程语言里边我们常常能看到好多方便又好用的函数,好多刚学习SQL的小白用户不禁会问,SQL里边有没有函数呢,有哪些函数呢?答案是:有,有很多。今天我们就一块来学习Mysql数据库中常见的一些函数(不同数据库其函数是有差别),首先我们先来学习常见的字符串函数。CHAR_LENGTH(s):返回字符串s的字符数,同LENGTH(s)函数。实例:返回字符串RUNOOB的
分类:数据库   时间:2020-09-17 18:42:15    阅读次数:44
45二叉树的锯齿形层次遍历(103)
作者: Turbo时间限制: 1S章节: DS:树 晚于: 2020-08-05 12:00:00后提交分数乘系数50% 截止日期: 2020-08-12 12:00:00 问题描述 : 给定一个二叉树,返回其节点值的锯齿形层次遍历。(即先从左往右,再从右往左进行下一层遍历,以此类推,层与层之间交替 ...
分类:其他好文   时间:2020-09-17 18:32:43    阅读次数:33
动画(控制动画隐藏、显示时间轴)
<!DOCTYPE html><html> <head> <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> <title></title> <style> .left div, .right div { wid ...
分类:其他好文   时间:2020-09-17 17:59:12    阅读次数:29
【leetcode】反转字符串
void reverseString(char* s, int sSize){ int start =0,end = sSize-1,temp; while(start < end) temp = s[start],s[start++] = s[end],s[end--] = temp; } ...
分类:其他好文   时间:2020-09-17 17:36:43    阅读次数:24
echarts 初次加载完成浏览器抖动 防抖动
tooltip: { trigger: "axis", transitionDuration: 0, }, echarts属性中添加 ...
分类:其他好文   时间:2020-09-17 17:11:40    阅读次数:30
【leetcode】罗马数字转整数
int romanToInt(char * s){ int* hash = (int*)calloc(26,sizeof(int)); hash['I'-65] = 1; hash['V'-65] = 5; hash['X'-65] = 10; hash['L'-65] = 50; hash['C' ...
分类:其他好文   时间:2020-09-17 17:09:44    阅读次数:20
35907条   上一页 1 ... 69 70 71 72 73 ... 3591 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!