How vinosaravanan/javascript-dsa-problem-solving works
Purpose and Runtime
This is a JavaScript ES6+/Node.js learning repository, not a cohesive deployed application. It contains standalone DSA exercises, demonstrations of array built-ins, and one runnable OOP banking-domain example. No external services, persistence layer, web framework, or infrastructure are represented in the tree.
Entry Points and Execution Model
Most files are independent scripts intended to be run directly with Node.js; there is no repository-wide application entry point. The clearest composed entry point is oops/projects-In-oops/bank-account-oop/index.js, which coordinates the banking classes. package.json defines the Node package boundary.
Array Algorithm Exercise Area
The Array/ directory groups isolated solutions for common sequence operations: searching, deduplication, rotation, extrema, pairs, and byte/string conversion. Each file owns its own inputs and algorithm flow rather than importing a shared library.
Key examples:
• Array/SearchTargetValueInArr.js
• Array/FindStartingAndEndingpositionGivenValue.js
• Array/RemoveDuplicatesInplace.js
String Algorithm Exercise Area
The String/ directory is an equivalent set of standalone text-processing exercises. The boundary is typically a string input transformed, inspected, or validated by one script; results are local rather than fed to other repository components.
Key examples:
• String/ReverseString.js
• String/checkAnagramsStr.js
• String/PalindromeCheck.js
Built-in Method Demonstrations
Build-In-Methods/ isolates practice implementations centered on JavaScript collection APIs. These are educational alternatives to imperative loops and have no dependency on the DSA or OOP areas.
Core paths:
• Build-In-Methods/Map.js
• Build-In-Methods/Filter.js
• Build-In-Methods/Reduce.js
Banking OOP Project
The bank-account project is the repository’s primary multi-module domain model. index.js acts as the composition/control boundary: it constructs and exercises account, customer, and transaction objects. BankAccount.js encapsulates account state and banking operations; Customer.js represents account ownership/customer data; Transaction.js models transaction records or behavior.
Core paths:
• oops/projects-In-oops/bank-account-oop/index.js
• oops/projects-In-oops/bank-account-oop/BankAccount.js
• oops/projects-In-oops/bank-account-oop/Customer.js
• oops/projects-In-oops/bank-account-oop/Transaction.js
Primary Flows and Boundaries
Two architectural styles coexist:
1. Exercise flow: sample values → algorithm/method logic → console/result output, contained within one file under Array/, String/, or Build-In-Methods/.
2. OOP flow: index.js → construct customers/accounts → invoke account operations → create or record transactions. Class files form the domain boundary; the index script is the orchestration boundary.
The repository intentionally favors independent practice units over reusable shared abstractions, test suites, API endpoints, databases, or cross-module data pipelines.
Main entry points: index.js Banking Runner · BankAccount.js Bank Account · Customer.js Customer · Transaction.js Transaction
Components 15
Array Exercises
Standalone sequence algorithm scripts.
- Search Target
Array/SearchTargetValueInArr.js - Find Value Range
Array/FindStartingAndEndingpositionGivenValue.js - Remove Duplicates
Array/RemoveDuplicatesInplace.js
String Exercises
Standalone text-processing scripts.
- Reverse String
String/ReverseString.js - Check Anagrams
String/checkAnagramsStr.js - Palindrome Check
String/PalindromeCheck.js
Built-in Method Demos
Independent JavaScript collection API demonstrations.
- Map Demo
Build-In-Methods/Map.js - Filter Demo
Build-In-Methods/Filter.js - Reduce Demo
Build-In-Methods/Reduce.js
Banking OOP Project
Composable banking-domain example.
- Banking Runner · Composes and exercises the banking domain.
oops/projects-In-oops/bank-account-oop/index.js - Customer · Represents account ownership and customer data.
oops/projects-In-oops/bank-account-oop/Customer.js - Bank Account · Encapsulates account state and banking operations.
oops/projects-In-oops/bank-account-oop/BankAccount.js - Transaction · Models transaction records or behavior.
oops/projects-In-oops/bank-account-oop/Transaction.js
Other components
- Node Package · Defines the Node.js package boundary.
package.json - Console Output · Scripts report locally through Node.js output.
Connections 15
- Search Target → Console Output: prints result
- Find Value Range → Console Output: prints result
- Remove Duplicates → Console Output: prints result
- Reverse String → Console Output: prints result
- Check Anagrams → Console Output: prints result
- Palindrome Check → Console Output: prints result
- Map Demo → Console Output: prints result
- Filter Demo → Console Output: prints result
- Reduce Demo → Console Output: prints result
- Banking Runner → Customer: constructs
- Banking Runner → Bank Account: constructs and operates
- Banking Runner → Transaction: creates or records
- Bank Account → Customer: associates owner
- Bank Account → Transaction: records activity
- Banking Runner → Console Output: reports execution