/Programming

A GitHub repository where I save all my solved problem from Hackerrank, leetcode, codeforces mostly. The solutions are mostly in Python and C++. A simple initiative to increase my analytical skills. Solved problems with tutorials are given here. Updated frequently!!

Primary LanguagePythonMIT LicenseMIT

Author: Kazi Amit Hasan

Department of Computer Science & Engineering,
Rajshahi University of Engineering & Technology (RUET)
Website: https://amithasanshuvo.github.io/
ResearchGate: https://www.researchgate.net/profile/Kazi_Amit_Hasan
Linkedin: https://www.linkedin.com/in/kazi-amit-hasan/
Email: kaziamithasan89@gmail.com

Programming

I tried to solve programming problems from codeforces, codechef, leetcode, hackerrank, hackerearth and many other platforms.It's my little effort to put all the solutions here to help others to understand.

Languages

  • Python 3.7.0,
  • C++

Best way to open this project

  1. Install PyCharm or VS code on your machine.(Make sure you use Python 3.7 or higher)
  2. git clone this repo to your local disk.
  3. For C++ codes follow this link: https://code.visualstudio.com/docs/languages/cpp

Interview Preparation

# Title Solutions Time Space Video/Explanation Difficulty Tag
1 Basic Data Types Solution Easy C++
2 For loop in C Solution Easy C++
3 Playing with Characters Solution Easy C++
3 Playing with Characters Solution Easy C++
4 Count Digits Solution Easy C++

Other Solved Problems

# Title Solutions Time Space Video/Explanation Difficulty Tag
1 Football Solution O(1) O(1) http://codeforces.com/blog/entry/64130 Easy Strings
2 Range of sum BST Solution https://www.youtube.com/watch?v=bD9oYzwfZ1w Easy Tree
3 Array Stabilization Solution http://codeforces.com/blog/entry/64130 Easy Implementation
4 Boy or Girl Solution https://codeforces.com/blog/entry/5592 Easy Brute Force
5 Chat room Solution https://codeforces.com/blog/entry/1771 Easy Greedy
6 Chef and Interactive Contests Solution https://www.youtube.com/watch?v=aWBkxc__VDY Easy Implementation
7 Fancy Quotes Solution https://www.youtube.com/watch?v=xZKd3lkYLdE Easy Implementation
8 Gennady and a Card Game Solution https://codeforces.com/blog/entry/64310 Easy Implementation
9 Helpful Math Solution http://codeforces.com/blog/entry/8725 Easy Greedy
10 Integer Sequence Dividing Solution https://codeforces.com/blog/entry/64439 Easy Math
11 Remove Duplicates from Sorted Array Solution https://www.youtube.com/watch?v=VSq4wxSpbTc&t=2s Easy Array
12 Jewels and Stones Solution https://www.youtube.com/watch?v=9Reqqk60Nv4&t=32s Easy Hash Table
13 Lucky Division Solution https://codeforces.com/blog/entry/2956 Easy Brute Force,Number Theory
14 Middle of the Contest Solution http://codeforces.com/blog/entry/65807 Easy Implementation
15 Petya and Strings Solution http://codeforces.com/blog/entry/2616 Easy Implementation
16 To lower case Solution Easy String
17 Unique Morse Code Words Solution Easy Hash Table
18 Big Countries Solution Easy Database
19 Sort array by parity Solution Easy Array
20 N-Repeated Element in Size 2N Array Solution https://www.youtube.com/watch?v=LsDeiI3yhG0 Easy Array
21 Squares of a Sorted Array Solution Easy Array
22 Telephone Number Solution Easy Greedy,Bruteforce
23 Unique Email Address Solution Easy String
24 Repeating Cipher Solution Easy String
25 String Task Solution Easy String
26 Two distinct points Solution Easy Implementation
27 Watermelon Solution Easy Math
28 Way too long Words Solution Easy String
29 Word Capitalization Solution Easy String
30 Borze Solution Easy Implementation
31 Football Solution Easy Implementation
32 Robot Return to Origin Solution Easy String
33 Merge two binary tree Solution Easy Tree
34 Hamming Distance Solution https://www.youtube.com/watch?v=luTAASaerOg&t=755s Easy Bit Manipulation
35 Self Dividing Number Solution Easy Math
36 Peak Index in a Mountain Array Solution Easy Binary Search
37 Simple Array Sum Solution Easy Algorithm
37a Simple Array Sum in cpp Solution Easy Algorithm
38 A very big sum Solution Easy Algorithm
38a A very big sum Solution Easy Algorithm
39 Plus Minus Solution Easy Algorithm
39a Plus Minus Solution Easy Algorithm
40 Plus Minus Solution Easy Algorithm
40a Plus Minus Solution Easy Algorithm
41 Compare the Triples Solution Easy Algorithm
41a Compare the Triples Solution Easy Algorithm
42 Min Max SUm Solution Easy Algorithm
43 Birthay Cake Candles Solution Easy Algorithm
44 Grading Students Solution Easy Algorithm
44a Grading Students Solution Easy Algorithm
45 Apple and Oranges Solution Easy Algorithm
45a Apple and Oranges Solution Easy Algorithm
46 Kangaroo Solution Easy Algorithm
46a Kangaroo Solution Easy Algorithm
46 Breaking the points Solution Easy Algorithm