Skip to content

Instantly share code, notes, and snippets.

View soninishank's full-sized avatar
🎯
Focusing

Nishank Soni soninishank

🎯
Focusing
View GitHub Profile
@soninishank
soninishank / .gitignore
Created May 14, 2019 06:49 — forked from octocat/.gitignore
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@soninishank
soninishank / mianjing.txt
Created May 25, 2019 07:42 — forked from devanshdalal/mianjing.txt
A good set of programming questions, to make your hands dirty! Please provide more questions in comments. I will add them
Additional Questions from Career-cup
Company selected Google,
Sorted by most comments
1.Partition integer array respect to zero, i.e. negative ... 0 ... positive, keep relative order
E.g. -1 1 3 -2 2 => -1 -2 1 3 2.
2. Search in 2D matrix,
Given each row and column sorted, or given for each (i,j) A[i][j] < A[i][j+1] & A[i][j] < A[i+1][j]
@soninishank
soninishank / Java Important Questions
Last active February 28, 2021 12:04
Java Most Important Interview Questions
1. Explain your current project?
2. Explain your roles and responsibility in your project?
3. Explain Spring MVC Flow?
4. Why we use annotations if we have already xml approach?
5. WAP to print print factorial of given number by using recursive function with the help of annotation-driven spring MVC approach?
6. WAP to print fabonacci Series of given number?
7. Diff among String, StringBuffer and StringBuilder?
8. What is static and instance variable?
9. How to make your own class as immutable?
10. Write the test case of factorial with the help of JUnit?
@soninishank
soninishank / Core Java
Last active February 28, 2021 12:06
Core Java Important
What is diff b/w arraylist and linkedlist?
How hashMap internally works in Java ?
What is the diff b/w hashmap and hashtable ? -- syncheonized , not null , no predictable order
What is diff between hashMap and concurrentHashMap ? Where do you used concurrentHashMap
What is diff between ConcurrentHashMap vs Synchronized HashMap ?
What happens when a duplicate key is put into a HashMap?
Can we add elements to list , if it is defined as final . ex:final List<String> list= new ArrayList<>();?
If you pass duplicate key to map than what will happen?
What is Callable interfcae and Future interface in Java ?
What are the Java 8 features ?
Multithreading Interview Questions:
=============================
1) What is multitasking?
2) What is multithreading and explain its application areas?
3) What is the advantage of multithreading?
4) When compared with c++ what is the advantage in java with respect to multithreading?
5) In how many ways we can define a thread?
6) Among extending Thread and implementing Runnable which approach is recommended?
7) Difference b/w t.start () and t.run ()?
8) Explain about thread Scheduler?
@soninishank
soninishank / cp_syllabus.md
Created May 10, 2020 09:09 — forked from sharmaeklavya2/cp_syllabus.md
Competitive Programming Syllabus

Competitive Programming Syllabus

Geometry

  • Problems - Refer the article for a list of problems which can be solved using Rotating Calipers technique.
@soninishank
soninishank / System Design.md
Created July 27, 2020 17:55 — forked from vasanthk/System Design.md
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?