This file contains 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<string.h> | |
int main(void) { | |
char str[500] = "HackerRank"; | |
char str1[500]; | |
scanf("%[^\n]%*c", str1); | |
strcat(str, str1); | |
printf("%s", str); | |
return 0; |
This file contains 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> // Printf | |
#include <time.h> // Timer | |
#include <math.h> // Logarithm | |
#include <stdlib.h> // Malloc | |
#include "mpi.h" // MPI Library | |
#include "bitonic.h" | |
#define MASTER 0 // Who should do the final processing? | |
#define OUTPUT_NUM 10 // Number of elements to display in output |
This file contains 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
void SequentialSort(void); | |
void CompareLow(int bit); | |
void CompareHigh(int bit); | |
int ComparisonFunc(const void * a, const void * b); |
This file contains 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 <iostream> //for std::cout ,std::cin | |
#include <cstdlib> | |
#include <time.h> | |
#include <omp.h> | |
using namespace std; | |
void ascendingSwap(int index1, int index2, int *ar) // Swap two values such that they appear in ascending order in the array | |
{ | |
if (ar[index2] < ar[index1]) | |
{ |
This file contains 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
<html> | |
<head> | |
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@0.11.6"></script> | |
</head> | |
<body> | |
<div id="output"></div> | |
</body> | |
<script> |
This file contains 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
<html> | |
<head> | |
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@0.11.6"></script> | |
</head> | |
<body> | |
<div id="output"></div> | |
</body> | |
<script> |
This file contains 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
<html> | |
<head> | |
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@0.11.6"></script> | |
</head> | |
<body> | |
<div id="output"></div> | |
</body> | |
<script> |
This file contains 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
<html> | |
<head> | |
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@0.11.6"></script> | |
</head> | |
<body> | |
</body> | |
<script> | |
// Your script goes here! |
This file contains 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
<html> | |
<head> | |
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@0.11.6"></script> | |
</head> | |
<body> | |
</body> | |
<script> | |
// Your script goes here! |
This file contains 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
# - *- coding: utf- 8 - *- | |
from telegram.ext import Updater, CommandHandler, MessageHandler, Filters | |
def start(bot, update): | |
update.message.reply_text("I'm a bot, Nice to meet you!") | |
def convert_uppercase(bot, update): | |
update.message.reply_text(update.message.text.upper()) | |
def main(): |
NewerOlder