Coding Interview Resources
This channel contains the free resources and solution of coding problems which are usually asked in the interviews. Managed by: @love_data
نمایش بیشتر📈 تحلیل کانال تلگرام Coding Interview Resources
کانال Coding Interview Resources (@crackingthecodinginterview) در بخش زبانی انگلیسی بازیگری فعال است. در حال حاضر جامعه شامل 52 132 مشترک است و جایگاه 2 574 را در دسته فناوری و برنامهها و رتبه 7 288 را در منطقه الهند دارد.
📊 شاخصهای مخاطب و پویایی
از زمان ایجاد در невідомо، پروژه رشد سریعی داشته و 52 132 مشترک جذب کرده است.
بر اساس آخرین دادهها در تاریخ 04 ژوئن, 2026، کانال فعالیت پایداری دارد. در ۳۰ روز گذشته تغییر اعضا برابر 183 و در ۲۴ ساعت گذشته برابر 8 بوده و همچنان دسترسی گستردهای حفظ شده است.
- وضعیت تأیید: تأیید نشده
- نرخ تعامل (ER): میانگین تعامل مخاطب 1.84% است و در ۲۴ ساعت نخست پس از انتشار، محتوا معمولاً 0.82% واکنش نسبت به کل مشترکان کسب میکند.
- دسترسی پستها: هر پست به طور میانگین 960 بازدید دریافت میکند. در اولین روز معمولاً 425 بازدید جمعآوری میشود.
- واکنشها و تعامل: مخاطبان بهطور فعال حمایت میکنند؛ میانگین واکنش به هر پست 2 است.
- علایق موضوعی: محتوا بر موضوعات کلیدی مانند array, stack, algorithm, programming, sort تمرکز دارد.
📝 توضیح و سیاست محتوایی
نویسنده این فضا را محل بیان دیدگاههای شخصی توصیف میکند:
“This channel contains the free resources and solution of coding problems which are usually asked in the interviews.
Managed by: @love_data”
به لطف بهروزرسانیهای پرتکرار (آخرین داده در تاریخ 05 ژوئن, 2026)، کانال همواره بهروز و دارای دسترسی بالاست. تحلیلها نشان میدهد مخاطبان بهطور فعال با محتوا تعامل دارند و آن را به نقطه اثرگذاری مهم در دسته فناوری و برنامهها تبدیل کردهاند.
fly() method may break if Penguin inherits it (Penguins can't fly). So, design must respect capabilities.
34. What is Dependency Inversion Principle?
High-level modules should not depend on low-level modules. Both should depend on abstractions.
Example: A service class should depend on an interface, not a specific implementation.
35. What is object slicing?
Occurs when an object of a derived class is assigned to a base class variable — the extra properties of the derived class are "sliced off."
Example: C++ object slicing when passing by value.
36. What are getters and setters?
Special methods used to get and set values of private variables in a class.
They support encapsulation and validation.
def get_name(self): return self._name
def set_name(self, name): self._name = name
37. What is a virtual function?
A function declared in the base class and overridden in the derived class, using the virtual keyword (in C++). Enables run-time polymorphism.
38. What is early binding vs late binding?
• Early Binding (Static): Method call is resolved at compile time (e.g., method overloading).
• Late Binding (Dynamic): Method call is resolved at run-time (e.g., method overriding).
39. What is dynamic dispatch?
It’s the process where the method to be invoked is determined at runtime based on the object’s actual type — used in method overriding (late binding).
40. What is a pure virtual function?
A virtual function with no implementation in the base class — makes the class abstract.
Syntax (C++):
virtual void draw() = 0;
💬 Double Tap ♥️ for Part-5public class Singleton {
private static Singleton instance = new Singleton();
private Singleton() {}
public static Singleton getInstance() {
return instance;
}
}
24. What are access specifiers?
Control visibility of class members:
• public – accessible everywhere
• private – only inside the class
• protected – inside class subclasses
• (default) – same package
25. What is cohesion in OOP?
• Degree to which class elements belong together.
• High cohesion = focused responsibility → better design.
26. What is coupling?
• Dependency between classes.
• Low coupling = better modularity, easier maintenance.
27. Difference between tight and loose coupling?
• Tight coupling: classes are strongly dependent → harder to modify/test.
• Loose coupling: minimal dependency → promotes reusability, flexibility.
28. What is composition vs aggregation?
• Composition: "part-of" strong relationship → child can't exist without parent.
Example: Engine in a Car
• Aggregation: weak association → child can exist independently.
Example: Student in a University
29. Difference between association, aggregation, and composition?
• Association: General relationship
• Aggregation: Whole-part, but loose
• Composition: Whole-part, tightly bound
30. What is the open/closed principle?
• From SOLID:
“Software entities should be open for extension, but closed for modification.”
• Means add new code via inheritance, not by changing existing logic.
💬 Double Tap ♥️ for Part-3class Animal {
void sound() { System.out.println("Animal sound"); }
}
class Dog extends Animal {
void sound() { System.out.println("Bark"); }
}
12. What is a Constructor?
A constructor is a special method used to initialize objects. It has the same name as the class and no return type.
Runs automatically when an object is created.
13. Types of Constructors:
• Default Constructor: Takes no parameters.
• Parameterized Constructor: Takes arguments to set properties.
• Copy Constructor (C++): Copies data from another object.
14. What is a Destructor?
Used in C++ to clean up memory/resources when an object is destroyed.
In Java, finalize() was used (deprecated now). Java uses garbage collection instead.
15. Difference: Abstract Class vs Interface
| Feature | Abstract Class | Interface |
|---------------|----------------------|------------------------|
| Methods | Can have implemented | Only declarations (till Java 8) |
| Inheritance | One abstract class | Multiple interfaces |
| Use case | Partial abstraction | Full abstraction |
16. Can a Class Inherit Multiple Interfaces?
Yes. Java allows a class to implement multiple interfaces, enabling multiple inheritance of type, without ambiguity.
17. What is the super keyword?
Used to refer to the parent class:
• Access parent’s constructor: super()
• Call parent method: super.methodName()
18. What is the this keyword?
Refers to the current class instance. Useful when local and instance variables have the same name.
this.name = name;
19. Difference: == vs .equals() in Java
• == compares object references (memory address).
• .equals() compares the content/values.
Use .equals() to compare strings or objects meaningfully.
20. What are Static Members?
Static members belong to the class, not individual objects.
• static variable: shared across all instances
• static method: can be called without an object
💬 Double Tap ♥️ for Part-3text = "hello"
reversed_text = text[::-1]
3️⃣ What’s the difference between is and ==?
Answer:
• == checks if values are equal
• is checks if they are the same object in memory
4️⃣ How do for and while loops differ?
Answer:
• for loop is used for iterating over a sequence (list, string, etc.)
• while loop runs as long as a condition is True
5️⃣ What is the use of break, continue, and pass?
Answer:
• break: exits the loop
• continue: skips current iteration
• pass: does nothing (placeholder)
6️⃣ How to check if a substring exists in a string?
Answer:
"data" in "data science" # Returns True
7️⃣ How do you use if-else conditions?
Answer:
x = 10
if x > 0:
print("Positive")
else:
print("Non-positive")
8️⃣ What are f-strings in Python?
Answer: Introduced in Python 3.6 for cleaner string formatting:
name = "Riya"
print(f"Hello, {name}")
9️⃣ How do you count characters or words in a string?
Answer:
text.count('a') # Count 'a'
len(text.split()) # Count words
🔟 What is a nested loop?
Answer: A loop inside another loop:
for i in range(2):
for j in range(3):
print(i, j)
💬 Tap ❤️ for more!
اکنون در دسترس! پژوهش تلگرام ۲۰۲۵ — مهمترین بینشهای سال 
