Skip to content

Files

Latest commit

43ab802 · Jun 1, 2024

History

History
16 lines (9 loc) · 1.15 KB

README.md

File metadata and controls

16 lines (9 loc) · 1.15 KB

Striver's SDE Sheet Approaches

This repository contains DSA Questions and its Approaches from the SDE Striver sheet. You will use this repository to practice DSA questions and define their approaches to do multiple revisions in future.

  • Language used: Java

Why to use java, if C++ is faster ?

  1. Portability: Java programs are typically more portable than C++ programs because Java code is compiled into bytecode, which can run on any platform with a Java Virtual Machine (JVM).++ programs, on the other hand, compile directly into machine code, which may not be compatible across different architectures.
  2. Java has automatic memory management through garbage collection, which simplifies memory allocation and deallocation for developers. In C++, memory management is manual, which can lead to issues like memory leaks and dangling pointers if not handled correctly.
  3. Java typically offers faster development speed due to features like automatic memory management, platform independence, and a rich ecosystem of libraries and frameworks.

Striver's SDE Sheet