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
Ko'proq ko'rsatish๐ Telegram kanali Coding Interview Resources analitikasi
Coding Interview Resources (@crackingthecodinginterview) Ingliz til segmentidagi kanali faol ishtirokchi. Hozirda hamjamiyat 52 132 obunachidan iborat bo'lib, Texnologiyalar & Aralashmalar toifasida 2 574-o'rinni va Hindiston mintaqasida 7 288-o'rinni egallagan.
๐ Auditoriya koโrsatkichlari va dinamika
ะฝะตะฒัะดะพะผะพ sanasidan buyon loyiha tez oโsib, 52 132 obunachiga ega boโldi.
04 Iyun, 2026 dagi oxirgi maโlumotlarga koโra kanal barqaror faollikka ega. Oxirgi 30 kunda obunachilar soni 183 ga, soโnggi 24 soatda esa 8 ga oโzgardi va umumiy qamrov yuqori darajada qolmoqda.
- Tasdiqlash holati: Tasdiqlanmagan
- Jalb etish (ER): Auditoriya oโrtacha 1.84% darajada jalb etiladi. Nashrdan keyingi dastlabki 24 soatda kontent odatda umumiy obunachilar sonining 0.82% ini tashkil etuvchi reaksiyalarni toโplaydi.
- Post qamrovi: Har bir post oโrtacha 960 marta koโriladi; birinchi sutkada odatda 425 ta koโrish yigโiladi.
- Reaksiyalar va oโzaro taโsir: Auditoriya faol: har bir postga oโrtacha 2 ta reaksiya keladi.
- Tematik yoโnalishlar: Kontent array, stack, algorithm, programming, sort kabi asosiy mavzularga jamlangan.
๐ Tavsif va kontent siyosati
Muallif resursni shaxsiy fikrni ifoda etish maydoni sifatida taโriflaydi:
โThis channel contains the free resources and solution of coding problems which are usually asked in the interviews.
Managed by: @love_dataโ
Yuqori yangilanish chastotasi (oxirgi maโlumot 05 Iyun, 2026 da olingan) sababli kanal doimo dolzarb va katta qamrovli boโlib qoladi. Analitika auditoriya kontent bilan faol hamkorlik qilishini, uni Texnologiyalar & Aralashmalar toifasidagi muhim taโsir nuqtasiga aylantirishini koโrsatadi.
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!
Endi mavjud! Telegram Tadqiqoti 2025 โ yilning asosiy insaytlari 
