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 / Creating a list of values from dictionary after checking if key is present in list or not.py
Last active December 12, 2016 17:23
Creating a list of values from dictionary after checking if key is present in list or not created by hygull - https://repl.it/EmfJ/0
"""
{
"cretaed_after" : "Sun Dec 11 00:41:43 IST 2016"
"aim_of_program" : "checking whether the given key is present in the dictionary or not"
"If it is, then we have to insert the corresponding value into one list"
"Keys can be in any order"
"coded_by" : "Rishikesh Agrawani"
}
@hygull
hygull / To use Split() and Fields() functions for getting the list of words separated by spaces.go
Created December 12, 2016 15:12
To use Split() and Fields() functions for getting the list of words separated by spaces created by hygull - https://repl.it/Enra/1
/*
{
"cretaed_after" : "Mon Dec 12 20:42:22 IST 2016"
"aim_of_program" : "To use Split() and Fields() functions for getting the list of words separated by spaces"
"coded_by" : "Rishikesh Agrawani"
}
*/
package main
import "fmt"
@hygull
hygull / Creating slices in 3 different ways.go
Last active December 12, 2016 15:49
Creating slices in 3 different ways created by hygull - https://repl.it/Enu0/0
/*
{
"cretaed_after" : "Mon Dec 12 21:13:14 IST 2016"
"aim_of_program": "Creating slices in 3 different ways"
"coded_by" : "Rishikesh Agrawani"
}
*/
package main
import "fmt"
@hygull
hygull / Channels (Printing table of numbers from 1 to 10).go
Created December 12, 2016 17:17
Channels (Printing table of numbers from 1 to 10) created by hygull - https://repl.it/EnwS/22
/*
{
"cretaed_after" : "Mon Dec 12 22:35:30 IST 2016"
"aim_of_program": "channels (Printing table of numbers from 1 to 10)"
"coded_by" : "Rishikesh Agrawani"
}
*/
package main
import "fmt"
@hygull
hygull / To iterate over 2 lists simultaneously using single for loop.py
Last active December 12, 2016 20:29
To iterate over 2 lists simultaneously using single for loop created by hygull - https://repl.it/EoOd/5
"""
{
"date_of_creation" : "Tue Dec 13 2016",
"aim_of_script" : "To iterate over 2 lists simultaneously using a single for loop",
"coded_by" : "Rishikesh Agrawani",
}
"""
""" ----------- 1st example --------------- """
nums = [ 12,33, 56]
@hygull
hygull / To print sum of primes available in the entered numbers.py
Created December 13, 2016 03:50
To print sum of primes available in the entered numbers created by hygull - https://repl.it/Eo5f/2
"""
{
"date_of_creation" : "13 decemeber 2016",
"aim_of_script" : "To print sum of primes available in the entered numbers",
"my_code_on_geeksforgeeks" :"http://www.practice.geeksforgeeks.org/problem-page.php?pid=1266"
"coded_by" : "Rishikesh Agrawani",
}
"""
def is_prime(n):
if n == 1:
@hygull
hygull / To check whether the linked list is palindrome or not.cpp
Last active December 13, 2016 12:18
To check whether the linked list is palindrome or not created by hygull - https://repl.it/Eoig/1
/*
{
"cretaed_after" : "13 Dec 2016"
"aim_of_program" : "To check whether the linked list is palindrome or not"
"coded_by" : "Rishikesh Agrawani"
"geeksforgeeks_problem_link":"http://www.practice.geeksforgeeks.org/problem-page.php?pid=700391"
"source_lang":"C"
"Compiler":"gcc(4.8.4)"
}
*/
@hygull
hygull / To reverse a singly linked list using iterative method.go
Last active December 14, 2016 06:34
To reverse a singly linked list using iterative method created by hygull - https://repl.it/EphE/1
/*
{
"date_of_creation" => "14 Dec 2016, Wed",
"aim_of_program" => "To reverse a singly linked list using iterative method",
"coded_by" => "Rishikesh Agrawani",
"memory" => "I wrote code in C on 13 Dec's evening on a paper with diagram and implemented on 14 Dec's morning, executed it on office(1 run execution)"
"Go_version" => "1.7",
}
*/
@hygull
hygull / To print the front most digit of integers.go
Created December 14, 2016 07:44
To print the front most digit of integers created by hygull - https://repl.it/Epix/0
/*
{
"date_of_creation" => "14 Dec 2016, Wed",
"aim_of_program" => "To print the front most digit of integers",
"coded_by" => "Rishikesh Agrawani",
"memory" => "1 submit execution, tail recursion"
"Go_version" => "1.7",
}
*/
@hygull
hygull / Printing sum of all the digits of all numbers from a given list of positive integers.go
Created December 14, 2016 17:46
Printing sum of all the digits of all numbers from a given list of positive integers created by hygull - https://repl.it/EqN9/0
/*
{
"date_of_creation" => "14 Dec 2016, Wed",
"aim_of_program" => "To print sum of all digits of each number of a given list of positive integers using recursion",
"coded_by" => "Rishikesh Agrawani",
"memory" => "1 submit execution, recursion"
"Go_version" => "1.7",
}
*/
package main