Posts

Java 8 stream API coding questions

 import java.util.*; import java.util.stream.Collectors; import java.util.function.Function; import java.util.stream.*; import java.time.*; public class Main {     public static void main(String[] args) {              //seperate odd and even       List<Integer> list = Arrays.asList(1,4,7,8,0,9,3);         List<Integer> odd=  list.stream()      .filter(x->x%2==1)      .collect(Collectors.toList());      List<Integer> even = list.stream().filter(x->x%2==0).collect(Collectors.toList());     //using partioning By  Map<Boolean,List<Integer>> sep = list.stream().collect(Collectors.partitioningBy(x->x%2==0));       System.out.println("odd :"+ odd + "even:"+even );       System.out.println("odd: "+ sep.get(true));       System.out.println("even: "+ sep.ge...

Roadmap from coding to System design

  Here are 9 playlists you actually need to cover everything from coding to system design: 1. Namaste JavaScript by Akshay Saini 🚀 - https://lnkd.in/gYVUUp25 2. LLD & HLD by Shrayansh Jain - https://lnkd.in/gFxtSxJU - https://lnkd.in/gtgR2FEQ 3. SQL by Ankit Bansal - https://lnkd.in/gEK8KKC5 4. Java & Spring Boot by Shrayansh Jain - https://lnkd.in/g2qhipNK - https://lnkd.in/gaDXrjTc 5. Frontend Machine Coding & System Design by Piyush Agarwal - https://lnkd.in/gexXg8eG - https://lnkd.in/g3C6C3eM 6. System Design by Gaurav Sen - https://lnkd.in/gF8Q4mef 7. Designing Microservices by Arpit Bhayani - https://lnkd.in/gebTXbDC 8. DSA playlist & A2Z DSA sheet by Raj Vikramaditya & takeUforward - https://lnkd.in/d_iUrd5w - https://lnkd.in/dQMGy9zF 9. Best projects playlist - https://lnkd.in/gSTk8pmZ - https://lnkd.in/g7cm2a6v Stop wasting months. Start learning smart. These playlists are all you need to prep efficiently and level up yo...