Note: List.of() method creates an immutable list. Once the list is created, its elements cannot be added, removed, or modified.
traditional for loop:with IntStream:
Find the LCM (least common multiple) of 8 and 7 from numbers 1 to 100;my approach:chatGPT:
> > >
source: https://leetcode.com/problems/top-k-frequent-elements/
result:
source: https://leetcode.com/problems/valid-sudoku/