Forwarded from Gopher Academy
بیشترین سوالات مصاحبه String + Array
String-Based Questions
1. Reverse a string — without using built-ins.
2. Is it a palindrome? Let's find out.
3. Remove duplicates from a string — efficiently.
4. First non-repeating character — who stands alone?
5. Count how many times each character appears.
6. Flip the words in a sentence, not the letters.
7. Are two strings anagrams? Prove it.
8. Longest substring without repeats — sliding window style.
9. Build your own atoi — string to integer.
10. Compress strings with run-length encoding.
11. Most frequent character — who dominates?
12. List all possible substrings of a string.
13. Is one string a rotation of another?
14. Strip all white spaces from a string.
15. Is this a valid shuffle of two strings?
16. Convert text to Title Case — properly.
17. Find the longest common prefix among words.
18. Break a string into a char array — without confusion.
19. Replace spaces with %20 — classic URL trick.
20. Turn full sentences into acronyms.
21. Check if the string is all digits — no alphabets allowed.
22. Count how many words are in the string.
23. Remove a specific character — cleanly.
24. Find the shortest word in a sentence.
25. Longest palindromic substring — two-pointer style.
Array-Based Questions
26. Reverse an array in-place.
27. Find the largest and smallest element.
28. Check for duplicates in an array.
29. Remove duplicates — return only unique values.
30. Find the missing number from 1 to N.
31. Move all zeros to the end — keep order.
32. Rotate the array left/right by K positions.
33. Find the Kth largest/smallest element.
34. Merge two sorted arrays — without using extra space.
35. Find the intersection of two arrays.
36. Sort 0s, 1s, and 2s without using sort().
37. Find subarrays with a given sum.
38. Detect if a subarray sums to 0.
39. Find the longest increasing subsequence.
40. Kadane’s Algorithm — maximum subarray sum.
41. Check if array is sorted and rotated.
42. Rearrange array in max-min order alternately.
43. Find leaders in an array (no greater element to the right).
44. Calculate frequency of all elements in O(n).
45. Product of all elements except self.
#تجربه
webinar_farsi
String-Based Questions
1. Reverse a string — without using built-ins.
2. Is it a palindrome? Let's find out.
3. Remove duplicates from a string — efficiently.
4. First non-repeating character — who stands alone?
5. Count how many times each character appears.
6. Flip the words in a sentence, not the letters.
7. Are two strings anagrams? Prove it.
8. Longest substring without repeats — sliding window style.
9. Build your own atoi — string to integer.
10. Compress strings with run-length encoding.
11. Most frequent character — who dominates?
12. List all possible substrings of a string.
13. Is one string a rotation of another?
14. Strip all white spaces from a string.
15. Is this a valid shuffle of two strings?
16. Convert text to Title Case — properly.
17. Find the longest common prefix among words.
18. Break a string into a char array — without confusion.
19. Replace spaces with %20 — classic URL trick.
20. Turn full sentences into acronyms.
21. Check if the string is all digits — no alphabets allowed.
22. Count how many words are in the string.
23. Remove a specific character — cleanly.
24. Find the shortest word in a sentence.
25. Longest palindromic substring — two-pointer style.
Array-Based Questions
26. Reverse an array in-place.
27. Find the largest and smallest element.
28. Check for duplicates in an array.
29. Remove duplicates — return only unique values.
30. Find the missing number from 1 to N.
31. Move all zeros to the end — keep order.
32. Rotate the array left/right by K positions.
33. Find the Kth largest/smallest element.
34. Merge two sorted arrays — without using extra space.
35. Find the intersection of two arrays.
36. Sort 0s, 1s, and 2s without using sort().
37. Find subarrays with a given sum.
38. Detect if a subarray sums to 0.
39. Find the longest increasing subsequence.
40. Kadane’s Algorithm — maximum subarray sum.
41. Check if array is sorted and rotated.
42. Rearrange array in max-min order alternately.
43. Find leaders in an array (no greater element to the right).
44. Calculate frequency of all elements in O(n).
45. Product of all elements except self.
#تجربه
webinar_farsi
Forwarded from Morteza Bashsiz مرتضی باشسیز (Morteza Bashsiz)
ویدیو شماره ۸ - کار کردن با PDNS API
توی این ویدیو توضیح میدم که چگونه API سرویس PDNS رو فعال کنیم و همچنین چند مورد استفاده از این API رو توضیح دادم. راجع به اینکه کجاها میشه و باید از API استفاده کرد هم صحبت کردم
https://youtu.be/rl5ONREmHjM
توی این ویدیو توضیح میدم که چگونه API سرویس PDNS رو فعال کنیم و همچنین چند مورد استفاده از این API رو توضیح دادم. راجع به اینکه کجاها میشه و باید از API استفاده کرد هم صحبت کردم
https://youtu.be/rl5ONREmHjM
YouTube
ویدیو شماره ۸ - کار کردن با PDNS API
توی این ویدیو توضیح میدم که چگونه API سرویس PDNS رو فعال کنیم و همچنین چند مورد استفاده از این API رو توضیح دادم. راجع به اینکه کجاها میشه و باید از API استفاده کرد هم صحبت کردم
Forwarded from Morteza Bashsiz مرتضی باشسیز (Morteza Bashsiz)
من اینو نمیدونستم
😁
As of January 10th, 2024, HashiCorp no longer publishes packages of our products for end-of-life (EoL) distributions to our production packaging sites and going forward will migrate EoL versions to our new archive site. HashiCorp no longer supports versions of Linux operating systems that have reached EoL status. These packages will be moved to the new Linux package archive site where users can continue to download them.
https://support.hashicorp.com/hc/en-us/articles/21890114850835-End-of-Life-Linux-Package-Archive-Site-FAQ
😁
As of January 10th, 2024, HashiCorp no longer publishes packages of our products for end-of-life (EoL) distributions to our production packaging sites and going forward will migrate EoL versions to our new archive site. HashiCorp no longer supports versions of Linux operating systems that have reached EoL status. These packages will be moved to the new Linux package archive site where users can continue to download them.
https://support.hashicorp.com/hc/en-us/articles/21890114850835-End-of-Life-Linux-Package-Archive-Site-FAQ
HashiCorp Help Center
End-of-Life Linux Package Archive Site FAQ
As of January 10th, 2024, HashiCorp no longer publishes packages of our products for end-of-life (EoL) distributions to our production packaging sites and going forward will migrate EoL versions to...
Forwarded from 🎄 یک برنامه نویس تنبل ( MΞ)
Forwarded from Linuxor ?
یه چیت شیت پایتونی پیدا کردم برای کسایی که پایتون زبان اصلیشون نیست کامل همچی رو گفته :
gto76.github.io/python-cheatsheet
@Linuxor
gto76.github.io/python-cheatsheet
@Linuxor
Forwarded from Linuxor ?
Forwarded from محتوای آزاد سهراب
انتظار اینو نداشتم دیگه :))))))))
روی این بزرگوار درحالت عادی باید روی دپندنسیها عذاب بکشی حالا روی عذاب بزرگ بیای عذاب نصب کنی برای خودت.
@SohrabContents
روی این بزرگوار درحالت عادی باید روی دپندنسیها عذاب بکشی حالا روی عذاب بزرگ بیای عذاب نصب کنی برای خودت.
@SohrabContents
Forwarded from محتوای آزاد سهراب
اوضاع از وقتی که مایکروسافت انتشار در استور رو !رایگان کرده اینطوریه که فردا میای میبینی RedStar os wsl هم توی استور هست.
@SohrabContents
@SohrabContents
Forwarded from Linuxor ?
فرانت کاری و خوشت از بکند نمیآد! چرا هر بار برای یه پروژه ساده باید Auth، DB و Storage رو از صفر پیاده کنی؟ Appwrite این تیکههای تکراری رو کامل از سر راهت برمیداره. مخصوصاً اگه با Flutter، React یا حتی فقط Node کار میکنی.
مناسب تیمای کوچیک، فریلنسرها یا هرکی میخواد سریع MVP بده بیرون بدون درگیر شدن با زیرساخت.
appwrite.io
@Linuxor
مناسب تیمای کوچیک، فریلنسرها یا هرکی میخواد سریع MVP بده بیرون بدون درگیر شدن با زیرساخت.
appwrite.io
@Linuxor
Forwarded from Linuxor ?
Forwarded from Linuxor ?
نوشتن اسکریپتهای bash بدون ShellCheck مثل رانندگی بدون آینه است.
این ابزار دقیقاً نقش همون آینه رو داره؛ ایرادای سینتکس، استفاده خطرناک از متغیرها، و حتی مسائل امنیتی رایج رو درمیاره. هر sysadmin یا devops حرفهای باید ازش استفاده کنه، مخصوصاً توی automation و CI/CD.
www.shellcheck.net
@Linuxor
این ابزار دقیقاً نقش همون آینه رو داره؛ ایرادای سینتکس، استفاده خطرناک از متغیرها، و حتی مسائل امنیتی رایج رو درمیاره. هر sysadmin یا devops حرفهای باید ازش استفاده کنه، مخصوصاً توی automation و CI/CD.
www.shellcheck.net
@Linuxor
Forwarded from Linuxor ?
Forwarded from Laravel News
Laravel's toUri() Method for Dynamic URL Construction https://laravel-news.com/touri
Laravel News
Laravel's toUri() Method for Dynamic URL Construction - Laravel News
Laravel's toUri() method converts strings to URI objects supporting fluent query parameter addition and modification. Streamline URL processing from text extraction to dynamic parameter construction with chainable methods.
Forwarded from Linuxor ?
Media is too big
VIEW IN TELEGRAM
بزرگترین فرق DragGAN با ابزارهای دیگه تولید عکس اینه که اینجا فقط یه پرامپت نمیدی و دعا کنی نتیجه شبیه چیزی بشه که میخوای؛ اینجا توی روند خلق تصویر دخیل میشی. نقطه به نقطه، مثل طراحی دستی.
این ابزار ایدهآل برای کساییه که خروجی تصویری براشون اهمیت جزئی داره؛ مثل تیمهای طراحی محصول، طراحان بازی، یا حتی معمارهایی که رندر میخوان بسازن.
ران کردنش هم بسیار سادس :
github.com/XingangPan/DragGAN
@Linuxor
این ابزار ایدهآل برای کساییه که خروجی تصویری براشون اهمیت جزئی داره؛ مثل تیمهای طراحی محصول، طراحان بازی، یا حتی معمارهایی که رندر میخوان بسازن.
ران کردنش هم بسیار سادس :
github.com/XingangPan/DragGAN
@Linuxor
Forwarded from Laravel News
Convert Eloquent Models to HLS Video https://laravel-news.com/convert-eloquent-models-to-hls-video
Laravel News
Convert Eloquent Models to HLS Video - Laravel News
Laravel HLS is a package for generating HTTP Live Streaming (HLS) playlists and segments with AES-128 encryption. Convert your Eloquent video models to HLS easily with this package.
Forwarded from Laravel News
AI-Driven Development Insiders Launch: 500 Seats. 24 Hours. 50% Off https://laravel-news.com/ai-driven-development-insiders-launch
Laravel News
AI-Driven Development Insiders Launch: 500 Seats. 24 Hours. 50% Off - Laravel News
AI-Driven Development Insiders Launch: 500 Seats. 24 Hours. 50% Off
Forwarded from linuxtnt(linux tips and tricks) (hosein seilany https://seilany.ir/)
🔰 راههای تشخیص ماشین مجازی یا فیزیکی (دستورات نیاز به دسترسی روت) دارند
نصب برنامه ها
# برای سیستمهای مبتنی بر Debian/Ubuntu:
# برای سیستمهای مبتنی بر RHEL/CentOS:
🔹روش 1: بررسی سازنده سیستم
sudo dmidecode -s system-manufacturer
🔹روش 2: مشاهده اطلاعات سختافزار سیستم
sudo lshw -class system | grep -i "product\|vendor"
🔹روش 3: تشخیص محیط مجازی با facter
sudo facter virtual
🔹روش 4: تشخیص با ابزار imvirt
sudo imvirt
🔹 روش 5: تشخیص نوع ماشین مجازی
sudo virt-what
🔹روش 6: تشخیص با systemd (در سیستمهای جدید)
sudo systemd-detect-virt
نویسنده: حسین سیلانی
اخبار و آموزش های بیشتر در کانال:
https://t.iss.one/linuxtnt
نصب برنامه ها
# برای سیستمهای مبتنی بر Debian/Ubuntu:
sudo apt install dmidecode lshw facter imvirt virt-what
# برای سیستمهای مبتنی بر RHEL/CentOS:
sudo yum install dmidecode lshw facter imvirt virt-what
🔹روش 1: بررسی سازنده سیستم
sudo dmidecode -s system-manufacturer
🔹روش 2: مشاهده اطلاعات سختافزار سیستم
sudo lshw -class system | grep -i "product\|vendor"
🔹روش 3: تشخیص محیط مجازی با facter
sudo facter virtual
🔹روش 4: تشخیص با ابزار imvirt
sudo imvirt
🔹 روش 5: تشخیص نوع ماشین مجازی
sudo virt-what
🔹روش 6: تشخیص با systemd (در سیستمهای جدید)
sudo systemd-detect-virt
نویسنده: حسین سیلانی
اخبار و آموزش های بیشتر در کانال:
https://t.iss.one/linuxtnt