codepedia
Відкрити в Telegram
💞 هدف این کانال آموزش رایگان برنامه نویسی💥 ↩️دوره های موجود رو از دست ندید😍 ❌اینجامنبع کتاب های برنامهنویسی نامبروانههه🥳
Показати більше5 441
Підписники
-324 години
+37 днів
-3530 день
Архів дописів
5 440
اگر دانشجویی و این ۵ تا سایت را نشناسی ضرر کردی #معرفی_سایت
1.Notedly.ai خلاصه مقالات
2.Zoterobib شناسایی رفرنس ها
3.mjl.clarivate.com چاپ سریع مقاله isi
4.editpad.org پیدا نمودن عنوان مقاله
5.Julius.ai تحلیل مقالات
🆔 @code_pedia
5 440
معرفی زبان VBScript 👀
☄️زبان VBScript یا همون Visual Basic Scripting Edition یه زبان برنامهنویسی ساده و جمع و جوره که توسط مایکروسافت ساخته شده. این زبان شبیه به ویژوال بیسیکه، اما برای اسکریپتنویسی تو صفحات وب و اتوماسیون کارهای ساده تو ویندوز استفاده میشه.
❓فرض کنین میخواین توی صفحه وب خودتون یه سری کارای ساده مثل اعتبارسنجی فرمها یا نمایش پیامهای هشدار انجام بدید، VBScript به دردتون میخوره. البته امروزه بیشتر از JavaScript برای این کارها استفاده میشه، ولی VBScript هنوز هم تو محیطهای ویندوزی کاربرد داره.
🆒یکی دیگه از کاربردهای VBScript، اتوماسیون کارهای تکراری تو ویندوزه. مثلا میتونین یه اسکریپت بنویسی که هر روز صبح کامپیوترتون رو روشن کنه، یه سری برنامهها رو باز کنه و یه سری فایلها رو مرتب کنه.
✔️در کل، VBScript یه زبان ساده و قابل فهمه که برای کارهای کوچیک و اتوماسیون تو محیط ویندوز خیلی به کار میاد. اگه تازهکارید و میخواید با یه زبان برنامهنویسی ساده شروع کنید یا دنبال یه ابزار برای انجام کارهای تکراری تو ویندوز میگردید، VBScript گزینه خوبیه.
#vbs
🆔 @code_pedia
5 440
میخوای دانسته های پایتونت رو محک بزنی؟؟
سایت real python یک کوئیز گذاشته فقط برای حلقه while لینکش رو می زارم برید امتحان بدید امتیاز هاتون رو کامنت کنید ببینیم که از همه زرنگ تره
لینک تست : https://realpython.com/quizzes/python-while-loop/
🆔@code_pedia | با کدپدیا همراه باشید
5 440
✅ شورت کات های کلیدی برای VSCode
▫️جایگزینی ⬅️ Ctrl+H
▫️باز کردن سریع فایل ⬅️ Ctrl+P
▫️بستن پنجره ⬅️ Ctrl+shift+F
▫️تنظیمات ⬅️ , + Ctrl
▫️جستجو ⬅️ Ctrl+F
▫️نمایش همه سمبل ها ⬅️ Ctrl+T
▫️تغییر نام ⬅️F2
▫️بازگرداندن تغییرات ⬅️ Ctrl+Z
#vscode
🆔 @code_pedia
5 440
حل سوالات استخدامی سایت leetcode.com
Task: No. 17. Letter Combinations of a Phone Number #medium
Condition:
Given a string containing the numbers 2 to 9 inclusive, return all possible combinations of letters that the number can represent. Return the answer in any order. The correspondence between numbers and letters (as on telephone buttons) is given below. Note that 1 does not match any letters.
Solution:
class Solution(object):
def subsetsWithDup(self, nums):
"""
:type nums: List[int]
:rtype: List[List[int]]
"""
res = []
nums.sort()
self.dfs(nums, [], res)
return res
def dfs(self, nums, path, res):
res.append(path)
for i in range(len(nums)):
if i > 0 and nums[i] == nums[i-1]:
continue
self.dfs(nums[i+1:], path + [nums[i]], res)
Explanation:
Sorting:
First we sort the nums array. Sorting makes it easy to handle duplicates because similar items will be placed next to each other.
Recursive dfs method:
The dfs method is used to recursively construct all possible subsets. In dfs, path represents the current subset, and res is a list of all subsets.
Adding a subset to the result:
At each level of recursion, we add the current subset of path to the result of res.
Handling duplicates:
Before continuing the recursion, we check whether the current element nums[i] is a duplicate of the previous element. If so, skip it to avoid adding identical subsets to res.
Recursive construction of subsets:
For each element in nums, starting at the current index, we call dfs on the next elements of the array (nums[i+1:]). This means that we consider subsets that include the current element, and continue to build subsets without the current element.
Path (path) and compartment (nums):
Each time dfs is called, a new subset is created by adding the current element to path. This new list is then passed to the next level of recursion, allowing all possible subsets to be constructed.
Time and space complexity:
Time complexity: O(2^n), where n is the number of elements in nums. This is because there are 2^n subsets for an array of n elements.
Space complexity: O(2^n * n), since each of the 2^n possible subsets may require up to n elements to store.
#interview #LeetCode
5 440
Repost from پایتون | Data Science | Machine Learning
حل سوالات استخدامی سایت leetcode.com
Task: No. 17. Letter Combinations of a Phone Number #medium
Condition:
Given a string containing the numbers 2 to 9 inclusive, return all possible combinations of letters that the number can represent. Return the answer in any order. The correspondence between numbers and letters (as on telephone buttons) is given below. Note that 1 does not match any letters.
Solution:
class Solution(object):
def subsetsWithDup(self, nums):
"""
:type nums: List[int]
:rtype: List[List[int]]
"""
res = []
nums.sort()
self.dfs(nums, [], res)
return res
def dfs(self, nums, path, res):
res.append(path)
for i in range(len(nums)):
if i > 0 and nums[i] == nums[i-1]:
continue
self.dfs(nums[i+1:], path + [nums[i]], res)
Explanation:
Sorting:
First we sort the nums array. Sorting makes it easy to handle duplicates because similar items will be placed next to each other.
Recursive dfs method:
The dfs method is used to recursively construct all possible subsets. In dfs, path represents the current subset, and res is a list of all subsets.
Adding a subset to the result:
At each level of recursion, we add the current subset of path to the result of res.
Handling duplicates:
Before continuing the recursion, we check whether the current element nums[i] is a duplicate of the previous element. If so, skip it to avoid adding identical subsets to res.
Recursive construction of subsets:
For each element in nums, starting at the current index, we call dfs on the next elements of the array (nums[i+1:]). This means that we consider subsets that include the current element, and continue to build subsets without the current element.
Path (path) and compartment (nums):
Each time dfs is called, a new subset is created by adding the current element to path. This new list is then passed to the next level of recursion, allowing all possible subsets to be constructed.
Time and space complexity:
Time complexity: O(2^n), where n is the number of elements in nums. This is because there are 2^n subsets for an array of n elements.
Space complexity: O(2^n * n), since each of the 2^n possible subsets may require up to n elements to store.
#interview #LeetCode
🆔 @Python4all_pro5 440
کدهای این بازی جذاب در گیت هاب قرار گرفت
روی لینک زیر بزنید و وارد گیست بشید.
برای دیدن راحت تر نتیجه میتونید از سایت کدپن استفاده کنید.
🆔@code_pedia | با کدپدیا همراه باشید
5 440
👩💻دوره آموزش ویندوز CCNA
📝 جلسه :1
👩💻مدرس : ابراهیم اخزری
👩💻منبع : itshield
#ccna
#شبکه
#سیسکو
❌️روح پدرو فرزاندان استاد ابراهیم اخزری شاد🖤🖤
🆔 @code_pedia
5 440
📸 چطور با هوش مصنوعی تصویرمون رو زنده کنیم؟!
⬅️اخیراً یک هوش مصنوعی به شدت خفنی معرفی شده که با گرفتن یک عکس و دو سه خط پرامپت از شما ، میتونه عکستون رو با جزئیات کامل متحرک کنه :)
⬅️وارد سایت زیر بشید و بعد از ثبت نام عکس خودتون رو آپلود کنید ؛ بعد از آپلود عکس یک متن چند خطی در مورد ویدیویی که میخواید ساخته بشرو بنویسید
+ اگه سایتش شلوغ نباشه همونجا بهتون ویدیو رو میده درغیر اینصورت یکم زمانمیبره!
🔗https://lumalabs.ai
🆔 @code_pedia
