Skip to content

chhayac/pyfun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 

Repository files navigation

pyfun - Fun with Python

Hackerrank Problems

Basic Data Type problems

Problem Description
find_second_largest.py Find second largest number from a list of N numbers
list_comprehension.py Print a list of all possible coordinates given by (i, j, k) on a 3D grid
nested_list.py Print the name(s) of any student(s) having the second lowest grade
find_percentage.py Find the average percentage marks obtained by a given student, correct to two decimal places
lists.py Performing different operations on list elements

String problems

Problem Description
split_and_join.py Split the string on a " " (space) delimiter and join using a - hyphen
mutation.py Program to replace the character at a given index in a string and print the modified string
find_a_string.py Print the number of times a substring occurs in the given string
minion_game.py Find the winner of minion game, print its name and score separated by a space
merge_the_tools.py Program to split a string by removing any subsequent occurrences non-distinct characters (Hackerrank - Merge the tools)

Set problems

Problem Description
symmetric_difference.py Program to compute symmetric difference of two sets (Hackerrank - Symmetric Difference)
sets.py Program to compute average height of the plants (Hackerrank - Sets)

Algorithm problems

Problem Description
peak_find.py Find a peak element in an array using divide and conquer approach
peak_finding_2d.py Find any peak element in 2-D array using divide and conquer approach
doc_distance_opt.py Program to implement document distance problem which is the problem of computing the distance between two given text documents
insertion_sort.py Program to implement insertion sort algorithm.

About

Fun with Python

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages