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
/* | |
DATE OF CREATION : 27/12/2016 | |
AIM OF PROGRAM : To separate a list of intergers into 3 different slices(based on +ve, -ve and 0) | |
CODED BY : RISHIKESH AGRAWANI | |
*/ | |
package main | |
import "fmt" | |
func integersSeparator(integersList []int) ([]int, []int, []int) { |
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
/* | |
Date of creation : 28/12/2016, Wednesday. | |
Aim of program : To use bitwise complement operator(with example). | |
Note : Computer stores -ve numbers as 2's complement of their +ve form. | |
eg. -2 will be stored as 2's complement of -2 | |
*/ | |
#include <stdio.h> | |
int main() | |
{ |
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
/* | |
#Created on : 29/12/2016. | |
#Aim of program : A simple hashing problem to choose a name from a hash table. | |
#Coded by : Rishikesh Agrawani. | |
#Problem's link : https://www.hackerearth.com/practice/data-structures/hash-tables/basics-of-hash-tables/tutorial/ | |
*/ | |
package main | |
import "fmt" |
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
/* | |
Created on : 29/12/2016. | |
Aim of program : To print a 2d slice columnwise(A simple hackerearth's practice problem). | |
Coded by : Rishikesh Agrawani. | |
Problem's link : https://www.hackerearth.com/practice/data-structures/arrays/multi-dimensional/tutorial/ | |
*/ | |
package main | |
import "fmt" |
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
/* | |
Creation date : 29/12/2016. | |
Problem's link : https://www.hackerearth.com/practice/data-structures/stacks/basics-of-stacks/tutorial/ | |
Aim of program : To help the manager to list out the costs for food packages. | |
Coded by : rishikesh Agrawani. | |
*/ | |
package main | |
import "fmt" |
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
/* | |
Creation date : 30/12/2016. | |
Problem's link : https://www.hackerearth.com/practice/data-structures/queues/basics-of-queues/tutorial/ | |
Aim of program : To perform enqueue & dequeue operations oDn queue. | |
Coded by : Rishikesh Agrawani. | |
*/ | |
package main | |
import "fmt" |
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
""" | |
@Date of creation : 31 Dec 2016. | |
@Aim of script : To implement a simple TCP server. | |
@Coded by : Rishikesh Agrawani. | |
""" | |
import socket | |
sock = socket.socket(socket.AF_INET,socket.SOCK_STREAM) | |
host_name = socket.gethostname() #To get the name of host |
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
""" | |
@Date of creation : 31 Dec 2016. | |
@Aim of script : To implement a simple TCP client. | |
@Coded by : Rishikesh Agrawani. | |
""" | |
import socket | |
sock = socket.socket(socket.AF_INET,socket.SOCK_STREAM) | |
host_name = socket.gethostname() #To get the name of host |
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
/* | |
@Date of creation : 31 Dec 2016. | |
@Aim of program : Level order traversal of binary tree(Queue implementation). | |
@Go version : 1.7.1 [go version command(on MAC )prints -> go version go1.7.1 darwin/amd64] | |
@Coded by : Rishikesh Agrawani. | |
*/ | |
package main | |
import "fmt" |
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
/* | |
#Date of creation : 9 Jan 2016. | |
#Aim of program : To print binary combinations. | |
#Coded by : Rishikesh Agrawani. | |
*/ | |
package main | |
import "fmt" |