You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This Java-based repo contains solutions for DSA problems from Peppcoding's level 1 practice set and FreeCodeCamp's JavaScript and Algorithm sections. Topics covered include Array, LinkedList, DP, OOPs, and more. Contribute and improve existing solutions. Happy coding!
Design a cash register drawer function checkCashRegister() that accepts purchase price as the first argument (price), payment as the second argument (cash), and cash-in-drawer (cid) as the third argument.
Given the array arr, iterate through and remove each element starting from the first element (the 0 index) until the function func returns true when the iterated element is passed through it. Then return the rest of the array once the condition is satisfied, otherwise, arr should be returned as an empty array