This repository will hold the problem statements given to me by my mentor in the README. After implementing the solution in my feature branch I will send a PR to master and ask my mentor to review it.
Write a lambda that will calculate base^expo1^expo2^expo3 in different ways. Try to do that in a single lambda function
Task after adding atleast 7 points in a BioData file:
- Create a new branch and create a new file containing details about basic git and vi commands.
- Also create another file containing details about following git commands:
- git reset
- gir revert
- git cherry-pick
- git rebase
- difference between merge and rebase
- Push the two new files on your branch. Raise PR (Pull Request) against the master branch.
- Design a database schema for any application of your choice. For example: BookMyShow application, FoodDelivery application etc.
- You can write details about the schema in a seperate file and branch and raise it's PR as well.
- A File compression algorithm generates following imperfect compression string
- x1a5b123b9c10c7c4d15x14a12 <-- Imperfect compression string
- a17b132c21d15x15 <-- Perfect compression string
Generate perfect compression string by accepting Imperfect compression string. Perfect string contains unique sorted characters whose number of occurences are summed up.
- Write regex to match with valid mobile number, email, IP address and URL for practice
Design a library management system that has the following constraints:
- One Member can borrow only one book at a time.
- There is only one copy of each book in the library.
You should include classes like Book
, Member
, Library
and implement basic functionality of borrow_book()
, return_book()
, check_library_status()
.
Read RubyDocs, Ruby Style Guide and about self
keyword usage in different scopes. Also read about mutablity
in Ruby
The Assignment 1: Exponentor is an example of using lambda.
Demonstrate the use of Blocks, Procs and Lambdas in Ruby.
Read more about Blocks, Procs and Lambdas
Design a Property management system through which we can buy, rent a property or book a hotel room. Use modules
for the same.
include
will include all methods defined in it as instance methods
extend
will include all methods as class methods
prepend
will include and give priority to the included methods in method lookup
Modules have special class methods called hooks
that are invoked at certain events such as include
, extend
, prepend
named as self.included(base)
which accept one parameter base
that contains the class name that includes that particular module.
Multiple methods with same name or a specific module method can be resolve using scope resolution operator ::
such as Walk::Human
where Walk
is the module name and Human
is the method name
Develop a Banking System in which customer can open his/her account. Use inheritance
and modules
- The account has the functionality of
deposit()
,withdraw()
andget_balance
. The account is identified byaccount_number
- There are two kinds of account;
CurrentAccount
andSavingsAccount
. - Each kind of accounts will have different
rate of interest
. - Accept
month
from user and show total amount.