Find the nearest numbers that have same number of 1s for an integer

April 3, 2022 · 4 min ·  Tags List of tags for the post   ctci ·  bits

Implement selection sort on stack

April 3, 2022 · 3 min ·  Tags List of tags for the post   stack

List Combinations - Generate unique combinations from list selecting 1 element from each

Longest Substring with K distinct characters

Maximum Pairwise Product 1 - Given only Positive Integers

April 3, 2022 · 2 min ·  Tags List of tags for the post   product ·  max-min

Remove duplicates from an unsorted linked list keeping only one instance

Replace all spaces in c-style string with '%20'

Rotate String Problem

Set all bits of a number in a range equal to another number

April 3, 2022 · 4 min ·  Tags List of tags for the post   ctci ·  bits

Swap odd and even bits in an integer

This site uses cookies to improve your experience on our website. By using and continuing to navigate this website, you accept this. Privacy Policy