This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Merge sort in C */ | |
#include<stdio.h> | |
#include<stdlib.h> | |
// Function to Merge Arrays L and R into A. | |
// lefCount = number of elements in L | |
// rightCount = number of elements in R. | |
void Merge(int *A,int *L,int leftCount,int *R,int rightCount) { | |
int i,j,k; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
int main() | |
{ | |
int c; | |
char ch; | |
c=108;ch=c; | |
printf("%c",ch); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#define max 10 | |
//strlen() | |
//strcmp() | |
/* | |
* Gets substring | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//control count of symbols in textarea | |
//count of symbols text | |
var symbolsLeftElement = $(".description").find(".symbols-left span"); | |
//count in number type | |
var symbolsLeftCount = parseInt(symbolsLeftElement.text()); | |
$("#description").on("input", function(){ | |
//lenght of symbols in field | |
var allCount = symbolsLeftCount - $(this).val().length; | |
if(allCount >= 0) { | |
symbolsLeftElement.text(allCount); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getParamsFromURL(strQuery) { | |
var strPattern = /([^=]+)=([^&]+)&?/ig, | |
arrMatch = strPattern.exec(strQuery), | |
objRes = {}; | |
while (arrMatch != null) { | |
objRes[arrMatch[1]] = arrMatch[2]; | |
arrMatch = strPattern.exec(strQuery); | |
} | |
return objRes; | |
} |