Skip to main content

This package is made for beginners who are appearing for interview preparation and to crack coding interviews

Project description

Interview Buddy

The Interview package contains a Python class designed to assist with various common interview questions and algorithms. This class offers methods to perform tasks related to fundamental algorithms and data structures frequently encountered during technical interviews.

Features:

Fibonacci Series Calculation:

Computes the Fibonacci series up to a specified number.

Palindrome Checking:

Determines whether a given string is a palindrome or not.

Bubble Sort:

Sorts a list of elements using the Bubble Sort algorithm.

Insertion Sort:

Sorts a list of elements using the Insertion Sort algorithm.

Anagram Detection:

Checks if two strings are anagrams of each other.

Binary Search:

Searches for an element in a sorted list using the Binary Search algorithm.

Minimum and Maximum Value Detection:

Finds the minimum and maximum values in a list of elements.

Array Reversal:

Reverses the order of elements in a list.

Usage:

Instantiate the Interview class with the necessary data inputs, and call the respective methods to perform the desired operations. The class provides insightful print statements during execution for better understanding and debugging purposes.

Example python code

Example usage of the Interview class

interview_instance = Interview(data=[5, 3, 8, 2, 1])

Compute Fibonacci series

interview_instance.fibonacci_series()

Check for palindrome

is_palindrome = interview_instance.palindrom() print("Is Palindrome:", is_palindrome)

Sort using Bubble Sort

sorted_data = interview_instance.bubble_sort() print("Sorted Data (Bubble Sort):", sorted_data)

Find minimum value

min_value = interview_instance.min_() print("Minimum Value:", min_value)

Reverse the array

reversed_data = interview_instance.reverse() print("Reversed Data:", reversed_data)

Contribution:

Contributions, suggestions, and bug reports are welcome! Feel free to fork this repository, make changes, and submit pull requests.

Documentation

This interview-buddy was developed for students and beginner who are struggling to learn the logic behind algorithms and datastructures just give your task it will give you the output with basic explanation of the code its being developed hope it helps

these are the commands used in it

Interview() -> which has two parameter which changes according to your task if you are performing sorting you can simple pass on list,if your program needs two parameters you can pass them also for example binary search we need two parameters the input list and searching element like so

there is binary_search,bubble_sort,insertion sort,min_,max_,anagram,palindrom,fibonacci series and looking forward to add more features to the package

package 📌

Authors

Installation

Install interview-buddy with cmd

  pip install interview-buddy==0.1

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

interview_buddy-0.2-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file interview_buddy-0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for interview_buddy-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6e73b79eb91ac4aa9354306d5cc0d4050f72be72f1ea88735fe62b81bb1f75d4
MD5 bf40598c8e95a7f5ebf920e90b61c571
BLAKE2b-256 4e06fb211c0b94f1a9c5480ef9b5a76ed23eebc00a0c8b4b8e4529a5db982040

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page