Skip to content

Instantly share code, notes, and snippets.

View sujaykundu777's full-sized avatar
🚀
focusing

Sujay Kundu sujaykundu777

🚀
focusing
View GitHub Profile
@sujaykundu777
sujaykundu777 / hello_world.py
Last active June 23, 2017 11:45
Hello World in Python
print("Hello world ")
@sujaykundu777
sujaykundu777 / hello_world.cpp
Created June 23, 2017 08:58
Hello World in C++
#include<iostream>
using namespace std;
int main(){
cout<<"Hello World ! ";
return 0;
}
@sujaykundu777
sujaykundu777 / linear_search.html
Created July 13, 2017 04:29
Linear Search Using Javascript
<html>
<head>
<title> Linear Search </title>
<script type="text/javascript">
function linear_search(){
var found=0;
@sujaykundu777
sujaykundu777 / rle.cs
Created July 13, 2017 16:05
Run Length Encoding in C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
//Write a C# program to implement the below compress the given string using Run Length Algorithm
namespace RunLengthEncoder
{
class Program
@sujaykundu777
sujaykundu777 / binary_search.c
Created July 25, 2017 04:15
Binary Search in C
#include<stdio.h>
#define max_size 1000 //Maximum size ot the Array
int main(){
int arr[max_size];
int arr_size,i;
int key;
int lowerbound;
int upperbound;
@sujaykundu777
sujaykundu777 / kadane.c
Created July 25, 2017 18:41
Kadane's Algorithm Implementation in C
#include<stdio.h>
//Function to calculate the maximum sum of a sub-array of a given array
int maxSumarray(int a[], int size){
int i;
int max_sum_so_far=0;
int max_ending_here = 0;
for(i=0;i<size;i++){
max_ending_here = max_ending_here + a[i];
@sujaykundu777
sujaykundu777 / linear_search.c
Created July 26, 2017 15:08
Linear Search Algorithm Implementation in C
#include<stdio.h>
int main (){
int count=0;
int i,size;
int key;
int a[100];
printf("Enter the size of the array");
@sujaykundu777
sujaykundu777 / 2darray.cpp
Created August 6, 2017 18:25
Passing 2d Matrix as a Function Parameter in C++
#include <iostream>
using namespace std;
void getData(int mat[][10],int row, int col);
void display(int mat[][10],int row, int col);
int main()
{
int row, col;
int mat[10][10];
@sujaykundu777
sujaykundu777 / index.html
Created August 8, 2017 15:05
Setting Up React
<!DOCTYPE html>
<html>
<head>
<title> React Portfolio Template </title>
<meta name="author" content="Sujay Kundu" />
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<meta name='viewport' content='width=device-width, initial-scale=1'>
@sujaykundu777
sujaykundu777 / app.js
Created August 8, 2017 15:18
Simple Greeting component for React
var App = React.createClass({
render: function(){
return(
React.createElement('h1', null, 'Hello, world!')
)
}
});