Skip to content

This repository is designed to be a comprehensive resource for coding interview questions across various programming languages, starting with JavaScript. Whether you're preparing for an interview or simply honing your coding skills, this collection of problems and solutions will help you get ready for technical interviews.

License

Notifications You must be signed in to change notification settings

Wondahs/interview_practice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

interview_practice

Welcome to the interview_practice repository! This repository is designed to be a comprehensive resource for coding interview questions across various programming languages, starting with JavaScript. Whether you're preparing for an interview or simply honing your coding skills, this collection of problems and solutions will help you get ready for technical interviews.

Table of Contents

Overview

The goal of this repository is to provide clear, concise, and well-documented solutions to common coding interview questions. Each problem is accompanied by a corresponding solution in JavaScript, with plans to expand to other languages in the future.

This repository currently covers a range of topics, from basic string manipulation to more complex algorithmic challenges.

Questions

Here is a list of the questions currently included in the repository:

  1. Program to find the longest word in a given sentence
  2. How to check whether a string is a palindrome
  3. Program to remove duplicates from an array
  4. Program to reverse a string without using built-in methods
  5. Find the maximum count of consecutive 1's in an array
  6. Find the factorial of a given number
  7. Merge and sort two sorted arrays
  8. Check if every value in one array has its corresponding value squared in another array
  9. Check if one string can be formed by rearranging the letters of another string
  10. Get unique objects from an array of objects
  11. Find the maximum number in an array
  12. Return a new array with only the even numbers from an input array
  13. Check if a given number is prime
  14. Find the largest element in a nested array
  15. Generate the Fibonacci sequence up to a given number of terms
  16. Count the occurrences of each character in a string
  17. Sort an array of numbers in ascending order
  18. Sort an array of numbers in descending order
  19. Flatten a nested array into a single-dimensional array

Solutions written in JavaScript are located in the javascript/ directory with the question number and name as the filename for easy reference. Tests for each are located in javascript/test directory.

Languages

Currently, the solutions are implemented in JavaScript. However, the repository is designed to be language-agnostic, with plans to add solutions in other popular programming languages, such as Python, Java, and C++.

As new languages are added, they will be organized into their respective directories.

Contributing

Contributions are welcome! If you have a new solution, optimization, or a completely new question to add, feel free to fork the repository and submit a pull request. Please ensure your code is well-documented and follows the repository's structure.

To contribute:

  1. Fork the repo
  2. Create a new branch (git checkout -b feature/your-feature)
  3. Commit your changes (git commit -m 'Add some feature')
  4. Push to the branch (git push origin feature/your-feature)
  5. Open a pull request

Future Plans

  • Expand Language Support: Add solutions in multiple programming languages.
  • Add Difficulty Levels: Categorize questions by difficulty (Easy, Medium, Hard).
  • Include Explanations: Provide detailed explanations and time complexity analysis for each solution.
  • Interactive Practice: Integrate with online coding platforms for interactive problem-solving.

About

This repository is designed to be a comprehensive resource for coding interview questions across various programming languages, starting with JavaScript. Whether you're preparing for an interview or simply honing your coding skills, this collection of problems and solutions will help you get ready for technical interviews.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published