Coder Social home page Coder Social logo

cruxrebels / interviewbit Goto Github PK

View Code? Open in Web Editor NEW
269.0 6.0 166.0 296 KB

A collection of Abhishek Agrawal's C++ solutions providing scalable, production-quality code to 200+ LeetCode-style problems on https://www.interviewbit.com, designed to enhance algorithmic skills through practical learning and mentorship.

License: MIT License

C++ 96.50% Java 3.50%
arrays backtracking binarysearch dynamic-programming bit-manipulation greedy-algorithms hashing heaps maps linked-list math stack queue string-manipulation trees two-pointers cplusplus-14 cplusplus-11 interviewbit-solutions interviewbit

interviewbit's Introduction

πŸš€ InterviewBit Solutions Repository

Welcome to my InterviewBit Solutions repository! πŸŽ‰ This project started as a hands-on learning lab to bridge the gap between algorithm theory and real-world problem-solving using the absolutely fantastic language, C++. Over time, it has evolved into a trusted resource for 250+ engineers, for its production-quality code and annotated teaching style.

Whether you're preparing for coding interviews or looking to deepen your understanding of algorithms, this repository is here to help! πŸ’‘


🌟 About the Project

This repository contains working solutions (βœ… passing all test cases on the InterviewBit online judge) written in C++. In future, I’ll try adding Java solutions as well, as I’ve transitioned to using Java in my professional work. πŸ–₯️

Key Highlights:

  • Optimized Solutions: Each solution is crafted with a focus on time ⏱️ and space complexity πŸ’Ύ.
  • Modern C++ Features: Solutions leverage C++11 features like list initialization, auto, and emplace_back.
  • Multiple Approaches: Some problems include multiple solutions with detailed comments explaining the trade-offs.
  • Mentorship-Driven: The code reflects professional C++ experience, with an emphasis on clarity and readability to foster learning. πŸ§‘β€πŸ’»

πŸ“ Notes for Users

  1. Standalone Execution: The solutions are designed for the InterviewBit platform and may not run directly in your local IDE. To execute them locally, you’ll need to write a main() function and provide appropriate inputs/test cases.
  2. Multiple Solutions: If a file contains multiple approaches, they are separated by comments. Be cautious not to copy all solutions at once when submitting to the online judge.
  3. Original Content: All code in this repository is written by me. If you find it helpful, please consider giving the repo a ⭐ to show your support!

🀝 How to Contribute

Contributions are always welcome! Here’s how you can get involved:

  1. Fork the Repository 🍴
  2. Make Changes ✏️: Add, delete, or modify solutions.
  3. Follow Standards πŸ“š: Ensure your code follows the existing structure and includes the problem statement with a link to the InterviewBit problem.
  4. Submit Proof πŸ“Έ: Attach a screenshot showing that your solution was ACCEPTED by the InterviewBit online judge.
  5. Create a Pull Request 🚒: Submit your changes for review.

πŸ› οΈ When Should You Contribute?

You can contribute if your solution meets any of the following criteria:

  • Better Time Complexity ⏳: Your solution is faster than the one already present.
  • Better Space Complexity πŸ’Ύ: Your solution uses less memory.
  • Conciseness βœ‚οΈ: Your solution is equally efficient but more concise.
  • Improved Readability πŸ“–: Your solution is easier to understand, with clear comments explaining the logic.
  • Enhanced Documentation πŸ“: You’ve added meaningful comments or explanations to an existing solution.

πŸ’‘ Why This Repository?

This project is more than just a collection of solutions β€” it's a learning resource designed to help engineers grow. By sharing my journey and insights, I hope to inspire others to write clean, efficient, and maintainable code. 🌱

If you find this repository helpful, don’t forget to star ⭐ it and share it with others who might benefit. Let’s grow together! πŸ™Œ


Thank you for visiting, and happy coding! 😊
Feel free to reach out if you have any questions or suggestions. πŸ’¬

interviewbit's People

Contributors

abhiagx avatar devesh511 avatar nishthapaul avatar bharatnischal avatar shivanshu-0 avatar shubham-lather avatar

Stargazers

Martijn.H avatar Nishant Tripathi avatar Chidvi Doddi avatar  avatar Lalit Kumar avatar Tanveer kaur avatar Vedraj Gawas avatar Shruti H. avatar  avatar kaushik raj avatar  avatar  avatar  avatar Pratyaksha Newalkar avatar Jasmer Singh Sanjotra avatar Ayush Kumar Awasthi avatar Ronak Haresh Chhatbar avatar MOHD FARHAN avatar Vladimir Kuklin avatar Deepshikha Dutta avatar Karthikeyan M avatar Richard Qian avatar R S avatar Casper avatar  avatar Erik Nelsestuen avatar Govind purty avatar  avatar AbdulHadi  avatar S. M. Anwarul Islam (Raju) avatar Abhinandan B M avatar Raj Jada avatar Aditya Lahane avatar Dhruva Agrawal avatar Pranay Pandey avatar Pushkar Nitin Waykole avatar Sugata Sarkar avatar  avatar ANKIT GURWAN avatar Osta avatar Ayush Varma avatar Rakibur Rahman avatar kara avatar Kunal Yadav avatar VenkatSairam avatar Annsh Agrawaal avatar Jyotishman Kashyap avatar iamsaurabhjadhav avatar Md. Tauseef - Ur - Rahman avatar Saivarshith Valugula avatar Vikas Khambra avatar Utkarsh Aditya avatar Nishant-B avatar Sanjay avatar Subhashis Bhowmik avatar Justin Etu avatar Likith Sai avatar  avatar Abhay Sharma avatar  avatar Nikhil Sekaran avatar Aleksandr Simonov avatar jasr avatar Saksham Arora avatar  avatar Manthan Ankolekar avatar  avatar  avatar Yatharth Nigam avatar Snehel avatar Yogesh Sonar avatar Harsh Singh avatar Sujay Kundu avatar  avatar Ashutosh Anand avatar  avatar Mohit Singh avatar Nishtha Rathod avatar  avatar Vijay Kiran avatar Bitan Sarkar avatar Soumik Pal avatar  avatar  avatar  avatar Akshay Malviya avatar Prachi Hiware avatar Harshit Chauhan avatar Pushpendra Vishwakarma avatar  avatar Guntuboina Sankirtana avatar  avatar  avatar Bhagya Vinod Rana  avatar navid sohrabi avatar BP avatar Aryan Blouria avatar Swetha Saseendran avatar Harshit Rathi avatar Anant Singh avatar

Watchers

hurricane avatar  avatar Omer Demir avatar  avatar DEVANG SHARMA avatar  avatar

interviewbit's Issues

getting interviewbit solutions

Hi, can you tell me how you downloaded your solutions from Interviewbit? Did you scrape the website or use any automated method to get your solutions?

Time Out

Hey according to your code nextRight(B) calling same node again which definitely gives wrong ans You should replace it with nextRight(B->next).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.