Saturday, 25 January 2025

Wednesday, 22 January 2025

Links

 https://discord.com/channels/423464391791476747/@home


https://zerotomastery.io/cheatsheets/data-structures-and-algorithms-cheat-sheet/


https://www.naukri.com/code360/problem-lists/top-array-coding-interview-questions


https://www.geeksforgeeks.org/top-50-array-coding-problems-for-interviews/


https://www.educative.io/blog/array-interview-questions


Tuesday, 14 January 2025

microservice sample

 https://github.com/Armando1514/Event-Driven-Microservices-Advanced

dotnet job jd

 

Sr .Net Developer


Job description

The ideal candidate will have 6+ years of experience in .NET, strong technical expertise, excellent problem-solving abilities, and exceptional communication skills.

Key Responsibilities:

  • OOPS
  • C#
  • .NET Core
  • Web API
  • LINQ
  • Entity Framework
  • Unit Testing
  • SQL/DB (CRUD Operations)
  • Design Patterns
  • System Architecture
  • MongoDB
  • Agile
  • Kafka (Good to have)
  • Communication

Please share CVs at ankit.kumar@celsiortech.com

Sunday, 12 January 2025

c#

 leet code c#

https://github.com/BigEggStudy/LeetCode-CS/blob/master/LeetCode/0001-0050/001-TwoSum.cs

interview qstns c#

 

Questions are asked on C# in the interview

What is C#? This question is designed to test your basic knowledge of the language. You can answer by saying that C# is an object-oriented programming language developed by Microsoft that is used to create Windows applications, web applications, and games.

What is the difference between a class and an object in C#? This question is designed to test your understanding of object-oriented programming concepts. You can answer by saying that a class is a blueprint for creating objects, while an object is an instance of a class.

What is the difference between an abstract class and an interface in C#? This question is designed to test your understanding of advanced object-oriented programming concepts. You can answer by saying that an abstract class is a class that cannot be instantiated and is used as a base class for other classes, while an interface is a contract that defines a set of methods and properties that a class must implement.

What is the difference between a value type and a reference type in C#? This question is designed to test your understanding of C# data types. You can answer by saying that a value type stores its value directly in memory, while a reference type stores a reference to an object in memory.

What is the difference between a stack and a heap in C#? This question is designed to test your understanding of C# memory management. You can answer by saying that a stack is used to store value types and method calls, while a heap is used to store reference types and objects.


INTERMEDIATE LEVEL QUESTIONS

What is the difference between a struct and a class in C#? This question is designed to test your understanding of C# data types. You can answer by saying that a struct is a value type that is stored on the stack, while a class is a reference type that is stored on the heap.

What is the difference between a delegate and an event in C#? This question is designed to test your understanding of C# events and delegates. You can answer by saying that a delegate is a type that represents a method signature, while an event is a mechanism for notifying clients when something happens.

What is the difference between a private and a protected member in C#? This question is designed to test your understanding of C# access modifiers. You can answer by saying that a private member is accessible only within the class that defines it, while a protected member is accessible within the class that defines it and any derived classes.

What is the difference between a static class and a non-static class in C#? This question is designed to test your understanding of C# classes. You can answer by saying that a static class cannot be instantiated and contains only static members, while a non-static class can be instantiated and contains both static and non-static members.

What is the difference between an abstract class and a sealed class in C#? This question is designed to test your understanding of C# classes. You can answer by saying that an abstract class cannot be instantiated and is used as a base class for other classes, while a sealed class cannot be inherited from.

aws file upload

 https://www.alter-solutions.com/articles/file-upload-amazon-s3-url

Day2

 Today, I solved an interesting problem: finding the length of the longest valid parentheses substring in a string. Using a two-pass approach, I iterated from left to right to count matching parentheses and calculate valid lengths while resetting counts for invalid cases.

To handle unbalanced scenarios, I reversed the process, iterating from right to left and applying the same logic. This ensured I captured all valid combinations efficiently. It was a great exercise in understanding edge cases and optimizing string traversal with an O(n) solution.

Excited to keep pushing my limits and tackling more challenges! 🚀

𝗧𝗼𝗱𝗮𝘆'𝘀 𝗽𝗿𝗼𝗯𝗹𝗲𝗺:
32. Longest Valid Parentheses

𝗘𝘅𝗽𝗹𝗮𝗻𝗮𝘁𝗶𝗼𝗻:
This Java code solves the problem of finding the length of the longest valid substring of parentheses in a given string s. It employs two passes to ensure all valid cases are considered. In the first pass, the code scans the string from left to right, using counters left and right to count the number of opening and closing parentheses, respectively.

Whenever left equals right, it calculates the maximum length of valid parentheses (left * 2). If right exceeds left, the counters are reset. The second pass scans from right to left to handle unbalanced cases where there are more opening parentheses.

Here, the same logic applies, resetting counters if left exceeds right. By combining both passes, the code accounts for valid substrings starting or ending in different positions. The result, stored in max, is returned as the length of the longest valid parentheses substring. This approach is efficient with O(n) time complexity.

𝗘𝘅𝗮𝗺𝗽𝗹𝗲 𝟭:
Input: s = "(()"
Output: 2

𝗘𝘅𝗮𝗺𝗽𝗹𝗲 𝟮:
Input: s = ")()())"
Output: 4



Day 13 (linkedin)

 Day 09 of 365: Problem-Solving with LeetCode ✨💡


📝 Today's Challenge: Reverse an Integer 🌟

Tackling the classic problem of reversing digits while ensuring it fits within the 32-bit signed integer range!

🌟 Key Insights:
✔️ Handle negatives with care.
✔️ Watch for overflows!
✔️ Clean and efficient logic is the key.

📊 Examples:
🔸 Input: 123 ➡️ Output: 321
🔸 Input: -123 ➡️ Output: -321
🔸 Input: 120 ➡️ Output: 21

🚀 Takeaway: Breaking down problems into manageable steps makes coding challenges a breeze. 💻

🎯 Goal: 356 more days to master problem-solving, one challenge at a time! 🔥
#365DaysOfCode  #LeetCode  hashtag #ProblemSolving 

Car pooling app

 I'll create a car pooling app with real-time vehicle tracking, pickup/drop time estimates, and a list of onboard users. Since we don...