Peter Kofi Turkson Asamoah's Projects
we need to find the balance (Lender - Borrower).
Given an array of integers representing the color of each sock, determine how many pairs of socks with matching colors there are.
Simple program to sort an array of numbers 0, 1 and 2
Given two strings consisting of digits 0 and 1 only, find the XOR of the two strings.
Given an integer , find each such that: where denotes the bitwise XOR operator. Return the number of 's satisfying the criteria.
Given an integer, we need to find the super digit of the integer.
new test
Testing out streams using student and lectures data
Implement a simple text editor. The editor initially contains an empty string, . Perform the ff operations
Given a time in 12-hour AM/PM format, convert it to military (24-hour) time. Note: - 12:00:00AM on a 12-hour clock is 00:00:00 on a 24-hour clock. - 12:00:00PM on a 12-hour clock is 12:00:00 on a 24-hour clock.
Lab work for Trading System. TLC 4.
Lab exercise for Trading System. TLC 4.
Convert a string to camelcase
Simple java towwer of hanoi game
Two players are playing a game of Tower Breakers! Player always moves first, and both players always play optimally.
Petrol and distance.
LeetCode 1 solution. Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target. You may assume that each input would have exactly one solution, and you may not use the same element twice. You can return the answer in any order.
Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target. You may assume
A URL Shortener Service built with Java, Spring Boot, and Redis
Count of Vowels in a string
Determine if the number on the plate is evenly divisible by the prime number. If it is, stack it in pile . Otherwise, stack it in stack . Store the values in from top to bottom in . In the next iteration, do the same with the values in stack . Once the required number of iterations is complete, store the remaining valu
Implement the function which takes an array containing the names of people that like an item. It must return the display text
Reverse words in a string with a length more than 5