Leetcode with dani
Ir al canal en Telegram
Join us and let's tackle leet code questions together: improve your problem-solving skills Preparing for coding interviews learning new algorithms and data structures connect with other coding enthusiasts
Mostrar más1 240
Suscriptores
Sin datos24 horas
-47 días
-2230 días
Archivo de publicaciones
1 240
can u solve this question? the logic is simple but it may take while to figure it out
70. Climbing Stairs
Solved
Easy
You are climbing a staircase. It takes n steps to reach the top.
Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?
Example 1:
Input: n = 2
Output: 2
Explanation: There are two ways to climb to the top.
1. 1 step + 1 step
2. 2 steps
Example 2:
Input: n = 3
Output: 3
Explanation: There are three ways to climb to the top.
1. 1 step + 1 step + 1 step
2. 1 step + 2 steps
3. 2 steps + 1 step
Constraints:
1 <= n <= 45
see the question in leetcode
13 jul 2025, 03:54
1 240
Check this website to practice for the INSA test. There are some rumors that INSA takes questions from this site.
Mensa IQ Test
Leetcode with dani
I'll share any new info as soon as I get it!
13 jul 2025, 03:27
1 240
I know this one is a little bit harder question — I don’t expect you to get the solution right away.
But I’m sharing it because trying to solve this will help you deeply understand the Binary Indexed Tree (BIT) concept.
You might not get it in one go — and that’s okay.
Just keep pushing, and eventually it will click.
🔗 Problem: Create Sorted Array through Instructions
🎥 Helpful video/Ans: YouTube Explanation
Once you solve this, you’ll be confident with how BIT works in real problems — from prefix sums to range frequency queries.
09 jul 2025, 17:53
1 240
Guys, have you heard of the BIT (Binary Indexed Tree)?
I learned about it a few days ago — it transforms both prefix‐sum queries and point updates from O(n) down to O(log n)!
In problems with frequent range‐sum queries and multiple updates, a simple prefix‐sum array fails (you’ll hit TLE). BIT handles every query and update in O(log n) time, so even with many operations your total cost stays around O(n log n) instead of O(n²).
Give it a try next time you see “range‑sum with updates”!
s
if u want to know more about it give me thumbs up i will share some questions that can be solved with with this algo with a video explanation about the topic
09 jul 2025, 16:45
1 240
🧠 INSA Summer Camp Past Questions — Test Your Logic!
1️⃣ Family Logic
Given:
+ = husband
/ = sister
× = son
- = wife
What does W × Y / Z mean?
A) Son of Z's brother
B) Son of Z's sister
C) Daughter of Z's sister
D) Daughter of Z's sister
2️⃣ Code Puzzle
A girl student sleeps → Vtp htj 1
A priest teaches tonight → Vxp wyz 2
A queen speaks tonight → Tsp wyz 1
"A lady speaks tonight"?
A) Vtp Tsp
B) Tsp Wyz
C) Wyz 2 htj
D) Tsp Wyz 1
3️⃣ Word Match
Imaginative Dynamic Learning = Sue Deb Can
Complex Dynamic System = Sue Rob Be
Complex Revolutionary Thinking = Mol De Be
What is Sue Be?
A) Revolutionary System
B) Dynamic System
C) Complex Dynamic
D) Imaginative Learning
👇👇👇
Answers:
1️⃣ B
2️⃣ D
3️⃣ B
🔥 Comment your score! More coming soon.
09 jul 2025, 16:35
1 240
If you applied for the INSA summer camp, please check their Telegram account for the names of students who were accepted in the first phase. https://t.me/cteinsa
09 jul 2025, 10:34
1 240
📢 Official Call for Teams: ETCPC 2025 Registration Now Open! 🎓💻The 10th Ethiopian Collegiate Programming Contest (ETCPC 2025) is officially accepting team registrations. This is your opportunity to represent Addis Ababa University in Ethiopia's most prestigious coding competition. Competition Details: 📅 Date: August 3–4, 2025 ⏳ Registration Deadline: Sunday, Midnight 12:00 AM 👥 Team Composition: 3 students per team RSVP HERE: Register now and secure your spot. 📍 Important Notes: ✔️ Only fully registered teams will be accepted ✔️ Official rules & details will be emailed after signup ✔️ All members must be eligible AAU students
07 jul 2025, 06:13
1 240
Repost from Google Developer Group AAU
📢 Official Call for Teams: ETCPC 2025 Registration Now Open! 🎓💻The 10th Ethiopian Collegiate Programming Contest (ETCPC 2025) is officially accepting team registrations. This is your opportunity to represent Addis Ababa University in Ethiopia's most prestigious coding competition. Competition Details: 📅 Date: August 3–4, 2025 ⏳ Registration Deadline: Sunday, Midnight 12:00 AM 👥 Team Composition: 3 students per team RSVP HERE: Register now and secure your spot. 📍 Important Notes: ✔ Only fully registered teams will be accepted ✔ Official rules & details will be emailed after signup ✔ All members must be eligible AAU students This is your moment to shine - will you rise to the challenge? ⚡🏆 #ETCPC2025 #CodeToWin #GDGAAU
07 jul 2025, 06:13
07 jul 2025, ~06:14
1 240
📢 Official Call for Teams: ETCPC 2025 Registration Now Open! 🎓💻The 10th Ethiopian Collegiate Programming Contest (ETCPC 2025) is officially accepting team registrations. This is your opportunity to represent Addis Ababa University in Ethiopia's most prestigious coding competition. Competition Details: 📅 Date: August 3–4, 2025 ⏳ Registration Deadline: July 12 Sunday, Midnight 12:00 AM 👥 Team Composition: 3 students per team RSVP HERE: Register now and secure your spot. 📝 For those who don't have a team, Fill out this form, and we'll match you with fellow coders. Kindly submit your details before the deadline 📍 Important Notes: ✔️ Only fully registered teams will be accepted ✔️ Official rules & details will be emailed after signup ✔️ All members must be eligible AAU students This is your moment to shine - will you rise to the challenge? ⚡️🏆 Follow us for updates: | Telegram | LinkedIn | Instagram | TikTok | Face Book | X #ETCPC2025 #CodeToWin #GDGAAU
07 jul 2025, 05:47
07 jul 2025, ~05:48
1 240
If you're procrastinating and if being focus is hard for u ,read this great book
07 jul 2025, 03:47
1 240
🚨 16 Billion Logins Leaked in Historic Data Breach
Cybersecurity researchers have uncovered one of the largest breaches ever. Over 16 billion login credentials—including social media, corporate, VPN, and email accounts—have been leaked online. The data is recent and weaponizable, gathered through malware from unsecured databases. It includes:
* Usernames, passwords, and URLs
* Apple accounts, Telegram-linked accounts, and more
* Datasets originating from the Russian Federation
Experts warn this leak is a blueprint for mass exploitation, enabling identity theft, phishing, and account takeovers.
Check if your email was exposed:
Using this link
Protect yourself now:
* Enable Two‑Factor Authentication (2FA)
* Use a password manager
* Rotate your passwords regularly
Stay safe.
19 jun 2025, 15:27
1 240
እንኳን ለ1,446 ኛው የኢደል-አድሀ [አረፋ] በዓል በሰላም አደረሳችሁ.
06 jun 2025, 02:19
15 jun 2025, ~02:29
