Skip to content

Instantly share code, notes, and snippets.

View hygull's full-sized avatar
😃
Enjoying work at AIPALETTE & in home. Programming is there as my best friend.

Rishikesh Agrawani hygull

😃
Enjoying work at AIPALETTE & in home. Programming is there as my best friend.
View GitHub Profile
@hygull
hygull / To separate a list of intergers into 3 different slices(based on +ve, -ve and 0).go
Created December 27, 2016 16:11
To separate a list of intergers into 3 different slices(based on +ve, -ve and 0) created by hygull - https://repl.it/ExUw/2
/*
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) {
@hygull
hygull / To use bitwise complement operator(with example).c
Created December 28, 2016 02:46
To use bitwise complement operator(with example) created by hygull - https://repl.it/Ex7l/2
/*
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()
{
@hygull
hygull / A simple hashing problem(from hackerearh practice section) to choose a name from a hash table.go
Created December 29, 2016 06:11
A simple hashing problem(from hackerearh practice section) to choose a name from a hash table created by hygull - https://repl.it/EyA0/2
/*
#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"
@hygull
hygull / To print a 2d slice columnwise(A simple hackerearth's practice problem).go
Created December 29, 2016 07:00
To print a 2d slice columnwise(A simple hackerearth's practice problem) created by hygull - https://repl.it/EyBJ/0
/*
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"
@hygull
hygull / To help the manager(from practice part of hackerearth) to list out the costs for food packages..go
Last active December 29, 2016 10:01
To help the manager(from practice part of hackerearth) to list out the costs for food packages. created by hygull - https://repl.it/EyC3/1
/*
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"
@hygull
hygull / To perform enqueue & dequeue operations on queue(a practice on Hackeearth).go
Last active December 30, 2016 06:03
To perform enqueue & dequeue operations on queue(a practice on Hackerearth) created by hygull - https://repl.it/EyX3/1
/*
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"
@hygull
hygull / server.py
Created December 31, 2016 09:26
To implement a simple TCP server
"""
@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
@hygull
hygull / client.py
Last active December 31, 2016 09:35
To implement a simple TCP client
"""
@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
@hygull
hygull / Level order traversal of binary tree(Queue implementation).go
Last active December 31, 2016 15:19
Level order traversal of binary tree(Queue implementation) created by hygull - https://repl.it/EymG/1
/*
@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"
@hygull
hygull / Go - To print binary combinations.go
Last active January 9, 2017 05:31
Go - To print binary combinations created by hygull - https://repl.it/FD9l/2
/*
#Date of creation : 9 Jan 2016.
#Aim of program : To print binary combinations.
#Coded by : Rishikesh Agrawani.
*/
package main
import "fmt"