Here is the Python code of arrays but manually that actually look like in leetcode challange
📌 Arrays are efficient for random access but slow for shifting.
This matters a lot when optimizing real-world problems.
@byte_philosopher
# Insert at index i
def insert_at(arr, i, val):
n = len(arr)
new_arr = [0] * (n + 1)
for j in range(i):
new_arr[j] = arr[j]
new_arr[i] = val
for j in range(i, n):
new_arr[j + 1] = arr[j]
return new_arr
# Delete at index i
def delete_at(arr, i):
n = len(arr)
new_arr = [0] * (n - 1)
for j in range(i):
new_arr[j] = arr[j]
for j in range(i + 1, n):
new_arr[j - 1] = arr[j]
return new_arr
# Append at end
def append(arr, val):
n = len(arr)
new_arr = [0] * (n + 1)
for i in range(n):
new_arr[i] = arr[i]
new_arr[n] = val
return new_arr
📌 Arrays are efficient for random access but slow for shifting.
This matters a lot when optimizing real-world problems.
@byte_philosopher
🔥4❤2
Excersise for today
Create leetcode account and do this then push it to leetcode hub
https://leetcode.com/problems/concatenation-of-array/
@byte_philosopher
Create leetcode account and do this then push it to leetcode hub
https://leetcode.com/problems/concatenation-of-array/
@byte_philosopher
LeetCode
Concatenation of Array - LeetCode
Can you solve this real interview question? Concatenation of Array - Given an integer array nums of length n, you want to create an array ans of length 2n where ans[i] == nums[i] and ans[i + n] == nums[i] for 0 <= i < n (0-indexed).
Specifically, ans is…
Specifically, ans is…
❤4👍1
“There is nothing so strong as gentleness and nothing so gentle as real strength.”
+St. Jerome
@byte_philosopher
💯4
Forwarded from Chapi Dev Talks
Python 3.14 is here with some exciting updates for developers!
The biggest news for most of you is the improved performance for multi-threaded apps thanks to official support for free-threaded Python.
Plus, a new
You'll also find smarter error messages to help you debug faster. Keep an eye out for these changes making your coding life a bit easier!
Test the JIT build of CPython by adding
https://docs.python.org/3.14/whatsnew/3.14.html
The biggest news for most of you is the improved performance for multi-threaded apps thanks to official support for free-threaded Python.
Plus, a new
concurrent.interpreters module opens the door for true multi-core parallelism within a single process, offering a new way to write concurrent code that bypasses the GIL for better efficiency.You'll also find smarter error messages to help you debug faster. Keep an eye out for these changes making your coding life a bit easier!
Test the JIT build of CPython by adding
export PYTHON_JIT=1 as new environment variable.https://docs.python.org/3.14/whatsnew/3.14.html
Python documentation
What’s new in Python 3.14
Editors, Adam Turner and Hugo van Kemenade,. This article explains the new features in Python 3.14, compared to 3.13. Python 3.14 was released on 7 October 2025. For full details, see the changelog...
🔥3
What I’ve Learned from Solving LeetCode Challenges 💻🧠
Don’t rush — take time to fully grasp the problem. Also, understand how your code will be tested so you can write solutions that truly pass all conditions.
Instead of relying too heavily on built-in keywords or shortcuts, try developing your own approach. Sometimes, overusing these shortcuts can lead to unexpected errors.
Before running your code, mentally simulate it with sample inputs. This helps catch logic flaws early and improves your problem-solving skills.
Keep pushing! Every bug fixed is a step closer to mastery 🔥
#LeetCode #CodingJourney #Debugging #ProblemSolving #LearnToCode
@byte_philosopher
1. Understand the Question Deeply
Don’t rush — take time to fully grasp the problem. Also, understand how your code will be tested so you can write solutions that truly pass all conditions.
2. Build Your Own Logic
Instead of relying too heavily on built-in keywords or shortcuts, try developing your own approach. Sometimes, overusing these shortcuts can lead to unexpected errors.
3. Debug in Your Mind 🧩
Before running your code, mentally simulate it with sample inputs. This helps catch logic flaws early and improves your problem-solving skills.
Keep pushing! Every bug fixed is a step closer to mastery 🔥
#LeetCode #CodingJourney #Debugging #ProblemSolving #LearnToCode
@byte_philosopher
⚡6
Forwarded from Naol.Builds (Elliot 🎯)
EOTCOpenSource ✝️
EOTCOpenSource is a collaborative community dedicated to uniting Ethiopian Orthodox Tewahedo Church (EOTC) believers with developers, designers, and contributors from around the world. Our mission is to build open-source digital tools that support the Church, its followers, and its sacred traditions.
We create modern software rooted in the ancient values of the Orthodox faith, making spiritual and cultural resources more accessible for generations to come.
Our projects aim to serve the diverse needs of the EOTC community. We focus on creating high-quality, reliable, and accessible tools,
including:
Mobile & Web Apps: Tools for prayer, learning, and community engagement.
Digital Calendars: Liturgical calendars with feasts, fasts, and saints' days.
Digital Texts & Archives: Digitizing liturgical books, hagiographies, and important texts in Amharic, Ge'ez, and other languages.
Liturgical Tools: Software to assist clergy and laity in Church services and prayers.
Chant & Hymn Resources: Platforms for learning and preserving the rich tradition of EOTC chants (Zema).
Join community: https://news.1rj.ru/str/EOTCOpenSource
Github Link: https://github.com/EOTCOpenSource/EOTCOpenSource
EOTCOpenSource is a collaborative community dedicated to uniting Ethiopian Orthodox Tewahedo Church (EOTC) believers with developers, designers, and contributors from around the world. Our mission is to build open-source digital tools that support the Church, its followers, and its sacred traditions.
We create modern software rooted in the ancient values of the Orthodox faith, making spiritual and cultural resources more accessible for generations to come.
Our projects aim to serve the diverse needs of the EOTC community. We focus on creating high-quality, reliable, and accessible tools,
including:
Mobile & Web Apps: Tools for prayer, learning, and community engagement.
Digital Calendars: Liturgical calendars with feasts, fasts, and saints' days.
Digital Texts & Archives: Digitizing liturgical books, hagiographies, and important texts in Amharic, Ge'ez, and other languages.
Liturgical Tools: Software to assist clergy and laity in Church services and prayers.
Chant & Hymn Resources: Platforms for learning and preserving the rich tradition of EOTC chants (Zema).
Join community: https://news.1rj.ru/str/EOTCOpenSource
Github Link: https://github.com/EOTCOpenSource/EOTCOpenSource
Telegram
ማህበረ ነህምያ
https://eotc-community-frontend.vercel.app/
“በእናንተ ዘንድ ያለ፥ በልቡ ጥበበኛ የሆነ ሁሉ መጥቶ እግዚአብሔር ያዘዘውን ሁሉ ያድርግ።“ ዘጸ 35:10
need any support? t.me/EOTC_support
“በእናንተ ዘንድ ያለ፥ በልቡ ጥበበኛ የሆነ ሁሉ መጥቶ እግዚአብሔር ያዘዘውን ሁሉ ያድርግ።“ ዘጸ 35:10
need any support? t.me/EOTC_support
❤9
This channel gives me a clear roadmap to machine learning warrior. It is only 15 minute. Check it out.
https://youtu.be/qNxrPri1V0I?si=huTOTD4NZENnZxpz
https://youtu.be/qNxrPri1V0I?si=huTOTD4NZENnZxpz
YouTube
Learn Machine Learning Like a GENIUS and Not Waste Time
Learn Machine Learning Like a GENIUS and Not Waste Time
#########################################
I just started my own Patreon, in case you want to support!
Patreon Link: https://www.patreon.com/c/InfiniteCodes
#########################################…
#########################################
I just started my own Patreon, in case you want to support!
Patreon Link: https://www.patreon.com/c/InfiniteCodes
#########################################…
🔥4
👍2😁2
July in @Byte_philosopher
- started a telegram channel🙃(I found you guys❤️)
-build 2 projects
-meet amazing people's
-started internship🎉
-explored and learnt more about life
Thank God
- started a telegram channel🙃(I found you guys❤️)
-build 2 projects
-meet amazing people's
-started internship🎉
-explored and learnt more about life
Thank God
❤11🥰1
What i failed in July
- loosing consistency
-couldn't finish courses that i started
Hope I will try to solve this
@byte_philosopher
- loosing consistency
-couldn't finish courses that i started
Hope I will try to solve this
@byte_philosopher
🔥4🆒1
❤7👍1🙏1
Forwarded from Naol.Builds (Elliot 🎯)
We are looking for a logo designer for EOTCOpenSource.
Design a logo that you think fits our community’s purpose, and I’ll post your submission here.
The logo should represent the teachings of the Ethiopian Orthodox Church and have a minimalistic style.
Design a logo that you think fits our community’s purpose, and I’ll post your submission here.
The logo should represent the teachings of the Ethiopian Orthodox Church and have a minimalistic style.
Telegram
ማህበረ ነህምያ
https://eotc-community-frontend.vercel.app/
“በእናንተ ዘንድ ያለ፥ በልቡ ጥበበኛ የሆነ ሁሉ መጥቶ እግዚአብሔር ያዘዘውን ሁሉ ያድርግ።“ ዘጸ 35:10
need any support? t.me/EOTC_support
“በእናንተ ዘንድ ያለ፥ በልቡ ጥበበኛ የሆነ ሁሉ መጥቶ እግዚአብሔር ያዘዘውን ሁሉ ያድርግ።“ ዘጸ 35:10
need any support? t.me/EOTC_support
👍1
Exhausted but doing it for the sake of deadline. I think my gut is also tired with drinking more coffee.
Again coffee again doing it 😩
#randomdays
@byte_philosopher
Again coffee again doing it 😩
#randomdays
@byte_philosopher
👏8
❤4🔥1🕊1