Programming notes
256 subscribers
438 photos
1 video
1 file
130 links
Student at the University of Arkansas πŸ‡ΊπŸ‡Έ

In Uzbek @uzbekode
Download Telegram
Memory is quite good, but runtime πŸ₯΄

πŸ’ͺ 10 Day Challenge: Day 5 βœ…
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘‰ "Promise.all" takes an array of promises and returns a single promise that resolves when all of the promises in the array have resolved. The resolved value will be an array of the resolved values of the input promises.

πŸ‘‰ The "then" method is used to handle the resolved values of the promises. It takes a callback function that receives the resolved values as an array.

πŸ’ͺ 10 Day Challenge: Day 6 βœ…

@leetcode_javascript
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
First medium problem of the Challenge.

Acceptance rate: 62.5%

πŸ’ͺ 10 Day Challenge: Day 7 βœ…

@leetcode_javascript
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ’ͺ 10 Day Challenge: Day 8 βœ…

@leetcode_javascript
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ’ͺ 10 Day Challenge: Day 9 βœ…

@leetcode_javascript
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ’ͺ 10 Day Challenge: Day 10 βœ…

Challenge completed!
😎

@leetcode_javascript
Please open Telegram to view this post
VIEW IN TELEGRAM
A new programmer writes 5 lines of code, compiles and runs, writes 5 more lines, and compiles and runs again. The programmer is _____ .
Anonymous Quiz
36%
wasting time
64%
following good practice
I am taking programming foundations 1 this semester at the University of Arkansas. I will share some insights, tips.
Programming notes
A new programmer writes 5 lines of code, compiles and runs, writes 5 more lines, and compiles and runs again. The programmer is _____ .
Though beginning programmers may think such an approach wastes time, in fact the approach saves time. The approach enables faster detection and correction of errors. If multiple errors exist in large code, the errors may interact and be harder to detect and correct.
1. Learn and code every day, consistency is important.
2. Write it down - plan your code before you start coding and understand the input to your program and the output from your code.
3. Learn to debug your code - look at the code line by line to see how it works.
4. Surround yourself with other people who are learning. Teach each other.
5. Learn taking notes.
6. Build something, anything you would enjoy while coding. Be unique.
7. Focus on 1 thing! Take small steps, but every day, consistency is very important again.
8. Learn to ask GOOD questions to others:
- G: Give context on what you are trying to do, clearly describing the problem.
- O: Outline the things you have already tried to fix the issue.
- O: Offer your best guess as to what the problem might be. It helps the person who is helping you not only know what you're thinking but also know that you've thought of something yourself.
- D: Demonstrate what's going on. Include the code, the tracing error message, and an explanation of the steps you followed that resulted in the error. That way, the person helping doesn't have to try to recreate the problem.

Source


.
100 down. Let’s go further!
Let’s start 30-dat LeetCode challenge today.
Let’s go! πŸ–₯️πŸ”₯

πŸ’ͺ 30 Day Challenge: Day 1 βœ…

@leetcode_javascript
What is the space complexity of this solution?
Anonymous Quiz
56%
O(n)
22%
O(log n)
22%
O(1)