Python3 Min Read LetuscrackonJanuary 13, 2025 Toggle Bit to Check Multiple of 5 in Binary Representation This article explains a Python program that checks whether a binary number can be converted to a multiple of 5 by toggling exactly one bit in…
Python1 Min Read LetuscrackonNovember 4, 2024 Multiple of N till divisible by X Two numbers N and X are passed as input. The program must print the multiples of N (starting from 1) and must stop when the multiple is…
How To Python1 Min Read LetuscrackonJune 12, 2024 Python Variables – Multiple Assignment For Variables Python allows us to assign values for more than one variable in a single line. The variables can be separated using commas. The one-liners for…
Python1 Min Read LetuscrackonJune 11, 2024 Next Multiple with Unit Digit D A positive integer N and a digit D are passed as input to the program. The program must print the first multiple of N (which is greater…
C1 Min Read LetuscrackonJune 9, 2024 Stock Buy & Sell Multiple Times – Maximum Profit Example Input/Output 1: Input:10 5 8 10 12 9 6 14 21 15 10 Output:22
Python1 Min Read LetuscrackonJune 8, 2024 Check if Multiple of N1 and N2 The program must accept three integers N1, N2 and N3 as the input. The program must print yes if N2 is a multiple of N1 and N3 is a multiple…
Python1 Min Read LetuscrackonJune 8, 2024 Remove characters occurring multiple times A string S is passed as the input. The program must remove all characters which appear more than once. If all the characters in a string are…
C Java Kickstart Python1 Min Read LetuscrackonJune 7, 2024 Multiple of 30 Plus 1 or 2 The program must accept an integer N as the input. The program must print YES if N is exactly one or two more than a…
Java1 Min Read LetuscrackonJune 7, 2024 Multiple Interfaces – Department and College Multiple Interfaces – Department and College: The program must accept…