String to Integer (atoi) – Java — clean Java solution and code implementation for software engineering interview preparation. Read more →
Category: interview
-
Merge Intervals
Javascript (ES6) Demo If "n" is the length of the input list, then the "Time Complexity" is O(nlogn). Read more →
-
Product of Array Except Self – Java
Time – O(n) Space – 0(1) – Neglecting the output array that is expected to be returned. Read more →
-
Copy List with Random Pointer (Reference) – Java
Copy List with Random Pointer (Reference) – Java — clean Java solution and code implementation for software engineering interview preparation. Read more →
-
Flatten Binary Tree to Linked List – Java
Flatten Binary Tree to Linked List – Java — clean Java solution and code implementation for software engineering interview preparation. Read more →
-
Trapping Rain Water
Python Javascript Demo Java Time Complexity: O(n)Space Complexity: O(n) Read more →
-
CSS Margins Collapsing
CSS Vertical Margins of adjoining elements collapse vertically by default unless contained in a flexbox. CSS Horizontal Margins never collapse. It is demonstrated in the following example. W3 Spec Read more →
-
Frog Jump – Java
This solution uses a HashMap Alternate solution can use DFS (Depth First Search) Read more →
-
Format currency and date manually in Javascript
Format Currency In case you want to implement a function to format currency instead of just using toLocaleString() then, you can use the following. Output Demo Format Date Output Demo Read more →