CSW
Home
About
Search
CSW PROBLEM SOLVER
HYPERLINKS
Weight calculator and parity checker
Permutation - calculate the kth previous or next permutation
Buy and sell stock - calculate profit after first and second buy
Bits shifitng - left shift and right shift
Bits reversal - reversing all the bits of a number
Pascal Triangle
Sample Offline data - generate random subset
Closest integer - calculate closest integer of same weight
Converter - binary to octal to decimal to hexadecimal
Division - without using arithmetic operators
Swap bits - swap the ith and jth bits
Weight and Parity
10
2
16
Weight
Parity
Permutation
Ans
Find prev permutation
Find next permutation
Buy and sell a stock
First sell
Second sell
Find Profit
Input the array elements by separating them with commas
Bit Shifting
10
Shift Direction
<<Left
>>Right
10
2
Submit
Bit Reversal
10
2
After reversing
10
2
Pascal Triangle
Pascal Triangle
Sample Offline Data
Submit
Closest integer of same weight
10
2
10
2
Changing bases
Binary->Octal->Decimal->Hexadecimal
2
8
10
16
Division
/
q
r
k
Find
Swap ith and jth bits
10
2
ith and jth bits
10
2
Swap