Thursday, May 20, 2021

DSA Study Path

 How to start learning Data Structures and Algorithms? What are the best resources for learning DSA? Which algorithms are the most important? How to effectively use GeeksForGeeks and Leetcode? I have explained everything in this video.

Learn Time Complexity: https://youtu.be/luXiytGnYpY Topic-wise links: 1. Arrays -Bare Minimum a. https://www.geeksforgeeks.org/top-50-... -Bonus a. https://www.interviewbit.com/courses/... b. https://leetcode.com/tag/array/ 2. Strings -Bare Minimum a. https://www.interviewbit.com/courses/... -Bonus a. https://leetcode.com/tag/string/ b. https://www.hackerrank.com/domains/al... 3. Linked Lists -Bare Minimum a. https://www.interviewbit.com/courses/... -Bonus a. https://leetcode.com/tag/linked-list/ b. https://www.geeksforgeeks.org/top-20-... 4. Stacks and Queues -Theory: a. https://www.geeksforgeeks.org/stack-d... b. https://www.geeksforgeeks.org/queue-s... -Bare Minimum a. https://www.interviewbit.com/courses/... -Bonus a. https://leetcode.com/tag/stack/ b. https://leetcode.com/tag/queue/ c. https://www.geeksforgeeks.org/queue-d... d. https://www.geeksforgeeks.org/stack-d... 5. Tree-based data structures: -Theory: a. https://www.geeksforgeeks.org/binary-... b. https://www.geeksforgeeks.org/binary-... c. https://www.geeksforgeeks.org/trie-in... d. https://www.geeksforgeeks.org/heap-da... e. https://www.geeksforgeeks.org/hashing... -Bare minimum: a. https://www.interviewbit.com/courses/... b. https://www.interviewbit.com/courses/... c. https://www.interviewbit.com/courses/... -Bonus a. https://leetcode.com/tag/tree/ b. https://leetcode.com/tag/heap/ c. https://leetcode.com/tag/trie/ d. https://leetcode.com/tag/hash-table/ 6. Graphs: -Theory: a. https://www.geeksforgeeks.org/graph-a... -Standard Algos: a. BFS - https://www.geeksforgeeks.org/breadth... b. DFS - https://www.geeksforgeeks.org/depth-f... c. Dijkstra - https://www.geeksforgeeks.org/dijkstr... d. Prim's - https://www.geeksforgeeks.org/prims-m... e. Kruskal - https://www.geeksforgeeks.org/kruskal... f. Floyd-Warshall - https://www.geeksforgeeks.org/floyd-w... g. Union Find - https://www.geeksforgeeks.org/union-f... -Bare Minimum: a. https://leetcode.com/tag/graph/ (Easy and Medium) -Bonus: a. https://www.interviewbit.com/courses/... 7. Dynamic Programming: -Video lectures: a. Lec 1 - https://www.youtube.com/watch?v=OQ5js... b. Lec 2 - https://www.youtube.com/watch?v=ENyox... c. Lec 3 - https://www.youtube.com/watch?v=ocZMD... -Bare minimum (Standard problems): a. https://www.geeksforgeeks.org/program... b. https://www.geeksforgeeks.org/0-1-kna... c. https://www.geeksforgeeks.org/coin-ch... d. https://www.geeksforgeeks.org/compute... e. https://www.geeksforgeeks.org/longest... f. https://www.geeksforgeeks.org/longest... g. https://www.geeksforgeeks.org/longest... -Bonus: a. https://www.interviewbit.com/courses/... b. https://leetcode.com/tag/dynamic-prog... Subscribe to my channel for more such videos :D Join my Telegram link for interview preparation material and updates: https://t.me/thecodeskool You can also reach me at: Instagram: https://www.instagram.com/thecodeskool/ Twitter: https://twitter.com/theCodeSkool LinkedIn: https://www.linkedin.com/in/deevanksh...

Wednesday, May 19, 2021

Laravel : Service Container

- a powerful tool for managing class dependencies and performing dependency injection.

- Dependency Injection Container and a Registry for the application


- responsible for managing class dependencies, meaning not every file needs to be injected in class manually but is done by the Service Container automatically.


- Service Container is mainly used in injecting class in controllers like Request object is injected. We can also inject a Model based on id in route binding.


public function profile(Request $request, User $id)

{

    // 

}


In the UserController profile method, the reason we can get the User model as a parameter is because of Service Container as the IoC resolves all the dependencies in all the controllers while booting the server. This process is also called route-model binding.


Request is also one example.



https://medium.com/@digitaldaswani/what-is-service-container-in-laravel-d0dff465f4e0


https://stackoverflow.com/questions/37038830/what-is-the-concept-of-service-container-in-laravel/48239728

Laravel Events

 

2) Explain Events in laravel ?


 Laravel events provides a simple observer implementation, that allowing you to subscribe and listen for various events/actions that occur in your application.

Monday, May 17, 2021

Laravel Init

 

Getting Started On Windows


curl -s https://laravel.build/example-app | bash

After the project has been created, you can navigate to the application directory and start Laravel Sail. Laravel Sail provides a simple command-line interface for interacting with Laravel's default Docker configuration:

cd example-app

./vendor/bin/sail up
curl -s https://laravel.build/example-app | bash
cd example-app

./vendor/bin/sail up

Installation Via Composer


composer create-project laravel/laravel example-app

cd example-app

php artisan serve

The Laravel Installer


composer global require laravel/installer

laravel new example-app

cd example-app

php artisan serve


Friday, May 14, 2021

BIG O

Big O notation is
- one of the most fundamental tools for computer scientists to analyze the cost of an algorithm.

In plain words, Big O notation describes the complexity of your code using algebraic terms.

It is a good practice for software engineers to understand in-depth as well.


DSA Study Path

  How to start learning Data Structures and Algorithms? What are the best resources for learning DSA? Which algorithms are the most importan...