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> | |
void search(char *pat, char *txt) | |
{ | |
int i = 0; | |
int M = strlen(pat); | |
int N = strlen(txt); | |
// A loop to slide pat[] one by one |
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> | |
void lexicalAnalyzer(char S[]); | |
int isIdent(char ch); | |
int isAlpha(char ch); | |
int isDigit(char ch); | |
int isOperator(char ch); | |
int isDel(char ch); | |
void isKeyword(); |
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> | |
// Returns the count of ways we can sum S[0...m-1] coins to get sum n | |
int count( int S[], int m, int n ) | |
{ | |
// If n is 0 then there is 1 solution (do not include any coin) | |
if (n == 0) | |
return 1; | |
// If n is less than 0 then no solution exists |
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
def greeting(name: str)->int: | |
return "Hello "+name | |
# funtiom calling with correct parameter type | |
greeting("Porimol") | |
# function calling with wrong parameter type | |
greeting(420) |
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
CREATE TABLE airline.on_time_performance ( | |
id integer NOT NULL, | |
"Year" integer, | |
"Quarter" integer, | |
"Month" integer, | |
"DayofMonth" integer, | |
"DayOfWeek" integer, | |
"FlightDate" integer, | |
"UniqueCarrier" integer, | |
"AirlineID" integer, |
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
/** | |
* @file bubble_sort.cpp | |
* @author Porimol Chandro, CSE 32D, World University of Bangladesh(WUB) | |
* @date 30/05/2017 | |
* | |
* @brief Bubble Sort Algorithm Implementation. | |
*/ | |
#include <iostream> |
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
/** | |
* @file selection_sort.cpp | |
* @author Porimol Chandro, CSE 32D, World University of Bangladesh(WUB) | |
* @date 23/05/2017 | |
* | |
* @brief Selection Sort Algorithm Implementation. | |
*/ | |
#include <iostream> |
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
/** | |
* @file insertion_sort.cpp | |
* @author Porimol Chandro, CSE 32D, World University of Bangladesh(WUB) | |
* @date 23/05/2017 | |
* | |
* @brief Insertion Sort Algorithm Implementation. | |
*/ | |
#include <iostream> |
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
/** | |
* @file linear_search.cpp | |
* @author Porimol Chandro, CSE 32D, World University of Bangladesh(WUB) | |
* @date 16/05/2017 | |
* | |
* @brief Linear Search Algorithm Implementation. | |
*/ | |
#include <iostream> |
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
/** | |
* @file binary_search.cpp | |
* @author Porimol Chandro, CSE 32D, World University of Bangladesh(WUB) | |
* @date 16/05/2017 | |
* | |
* @brief Binary Search Algorithm Implementation. | |
*/ | |
#include <iostream> |