Coding interview preparation
Preparing programmers for job interviews. Free courses: @bigdataspecialist @programming_books_bds @datascience_bds @github_repositories_bds @data_visualization_bds @tech_news_bds @python_bds DMCA disclosure: @disclosure_bds Contact: @mldatascientist
Ko'proq ko'rsatish5 165
Obunachilar
+224 soatlar
+327 kunlar
+17330 kunlar
- Kanalning o'sishi
- Post qamrovi
- ER - jalb qilish nisbati
Ma'lumot yuklanmoqda...
Obunachilar o'sish tezligi
Ma'lumot yuklanmoqda...
100+ Practice Questions
โ C/C++
โ Python
โ JavaScript
โ Java
โ C#
โ Golang
โ Simple Numbers
โ Find a digit at a specific place in a number
โ Find count of digits in a number
โ Find the largest digit
โ Find the 2nd largest digit
โ Find the kth largest digit
โ
Find the smallest digit
โ Find the 2nd smallest digit
โ Find the kth smallest digit
โ Find generic root (sum of all digits) of a number
โ Reverse the digits in a number
โโ Rotate the digits in a number
โโ Is the number a palindrome?
โโ Find sum of 'n' numbers
โโ Check if a number is perfect square
โโ Find a number in an AP sequence
โโ
Find a number in a GP sequence
โโ Find a number in fibonacci sequence
โโ Check number divisibility by 2, 3, 5, 9
โโ Check if a number is primary or not
20. Given a number, print all primes smaller than it
โโ Check if a number is circular prime or not
โโ Find all prime factors of a number
โโ Find the GCD of 2 numbers
โโ Find the LCM of 2 numbers
โโ Find the factorial of a number
โโ
Find the exponentiation of a number
โ Unit Conversion
โ Number Base (Binary, Octal, Hexadecimal, Decimal)
โ Weight (gram, kg, pound)
โ Height (cm, m, inch, feet)
โ Temperature (centigrade, fahrenhite)
โ Distance (km, mile)
โ
Area (mยฒ, kmยฒ, acre)
โ Volume (ltr, gallon)
โ Time (sec, min, hour)
โ Currency
โ Calculator
โ Loan EMI Calculator
โ Fixed Deposit Returns Calculator
โ Interest Calculator
โ BMI Calculator
โ Item Price (considering tax, discount, shipping)
โ
Tip Calculator
โ Geometry
โ Find distance between 2 points
โ Given 2 sides of a right angle triangle, find the 3rd
โ Find 3rd angle of a triangle when 2 are given
โ Area of a triangle when 3 sides are given
โ Area of a right angle triangle
โ
Perimeter of a Square
โ Area of a Square
โ Perimeter of a Rectangle
โ Area of a Rectangle
โ Circumference of a Circle
โโ Area of a Circle
โโ Circumference of a Semi-Circle
โโ Area of a Semi-Circle
โโ Area of a Ring
โโ Circumference of an Ellipse
โโ
Area of an Ellipse
โโ Suface Area of a Sphere
โโ Volume of a Sphere
โโ Surface Area of a Hemisphere
20. Volume of a Hemisphere
โโ Surface area of a Cube
โโ Volume of a Cube
โโ Surface area of a Cylinder
โโ Volume of a Cylinder
โ Vector
โ Find Scalar Multiplication of a vector
โ Find addition/subtraction of vectors
โ Find magnitude of a vector
โ Find an unit vector along a given vector
โ Find dot product of 2 vectors
โ
Find cross product of 2 vectors
โ Check if 2 vectors are orthogonal
โ Matrix
โ Find the determinant of a matrix
โ Find Scalar Multiplication of a matrix
โ Find addition/subtraction of matrices
โ Find the transpose of a matrix
โ Find if 2 matrices are orthogonal
โ
Find inverse of a 2x2 and 3x3 matrix
โ Set
โ Find Union of 2 sets
โ Find Intersection of 2 sets
โ Find the Difference of 2 sets
โ Find the Symmetric Difference of 2 sets
โ Find if a set is subset/superset of another set
โ
Find if 2 sets are disjoints
โ Special Numbers
โ Strong Number
โ Perfect Number
โ Armstrong Number
โ Harshad Number
โ Kaprekar Number
โ
Lychrel Number
โ Narcissistic Decimal Number
โ Lucus Number
โ Catalan Number
โ Duck Number
โโ Ugly Number
โโ Abundant Number
โโ Deficient Number
โโ Automorphic Number
โโ Magic Number
โโ
Friendly Pair Numbers
โโ Neon Number
โโ Spy Number
โโ Happy Number
20. Sunny Number
โโ Disarium Number
โโ Pronic Number
โโ Trimorphic Number
โโ Evil Number
โโ Amicable Pairs
๐ฅ Last Words
โฌ If you want to excel in programming, practice a lot.
โฌ Problems based on numbers are easy to start with and they help in improving your analytical skills.
๐ 3โค 1
Photo unavailableShow in Telegram
+ operator will first convert the string to a numeric value.
so "0" -> 0
after that, it's post incrementing, so it will not increment
thus output will remain 0
P.S : There are two types of increment (post & pre)
Post (a++) will print first then increment
Pre (++a) will increment first then print
Photo unavailableShow in Telegram
Syntax Error!!!
Cause you can't declare the same variable two times. The variable num is declared twice within the same scope: once using var and then using let. Redeclaring a variable with let or const in the same scope is not allowed, leading to a syntax error.
๐ 4
Database keys
Database keys are essential for organizing and managing data effectively. In this post, we'll explore ten key concepts that every IT professional should know.
1. ๐ ๐ฃ๐ฟ๐ถ๐บ๐ฎ๐ฟ๐ ๐๐ฒ๐
- A unique identifier for each record in a table.
- Cannot be null.
- Ensures that each row is unique.
2. ๐ ๐๐ผ๐ฟ๐ฒ๐ถ๐ด๐ป ๐๐ฒ๐
- A field in one table that refers to the Primary Key of another table.
- Establishes relationships between tables.
3. ๐งฉ ๐๐ผ๐บ๐ฝ๐ผ๐๐ถ๐๐ฒ ๐๐ฒ๐
- A combination of two or more columns that uniquely identifies each record.
- Useful when a single column can't uniquely identify a record.
4. ๐ช ๐ฆ๐๐ฝ๐ฒ๐ฟ ๐๐ฒ๐
- One or more columns that can uniquely identify a record.
- A Primary Key is a type of Super Key.
5. ๐
๐๐ฎ๐ป๐ฑ๐ถ๐ฑ๐ฎ๐๐ฒ ๐๐ฒ๐
- A column or set of columns that could be the Primary Key.
- Must be unique.
6. ๐ ๐จ๐ป๐ถ๐พ๐๐ฒ ๐๐ฒ๐
- Ensures uniqueness for a column or column combination.
- Similar to Primary Key but allows one null value.
7. ๐ค ๐๐น๐๐ฒ๐ฟ๐ป๐ฎ๐๐ฒ ๐๐ฒ๐
- A Candidate Key that isn't the Primary Key.
- Another option for a unique identifier.
8. ๐ ๐ก๐ฎ๐๐๐ฟ๐ฎ๐น ๐๐ฒ๐
- A key that's a natural part of the data, like an email address.
9. ๐ญ ๐ฆ๐๐ฟ๐ฟ๐ผ๐ด๐ฎ๐๐ฒ ๐๐ฒ๐
- An artificial key created when no natural unique identifier exists.
10. ๐ ๐ฆ๐ฒ๐ฐ๐ผ๐ป๐ฑ๐ฎ๐ฟ๐ ๐๐ฒ๐
- Used for data retrieval, not identification.
- Helps create non-clustered indexes.
๐ 4