2018-01-21 TIL Selection Sort
수업시간에 들은 selection sort를 파이썬으로 구현해보았다. 쉬운 문제인데 엄청 헤맸다..
More …수업시간에 들은 selection sort를 파이썬으로 구현해보았다. 쉬운 문제인데 엄청 헤맸다..
More …Given a String of length N reverse the words in it. Words are separated by dots.
More …Given an array A [ ] having distinct elements, the task is to find the next greater element for each element of the array in order of their appearance in the array. If no such element exists, output -1
More …Write a program to sort an array of 0’s,1’s and 2’s in ascending order.
More …Given an array A your task is to tell at which position the equilibrium first occurs in the array. Equilibrium position in an array is a position such that the sum of elements below it is equal to the sum of elements after it.
More …Given an unsorted array of non-negative integers, find a continuous sub-array which adds to a given number.
More …Given an array A[] of n numbers and another number x, determine whether or not there exist two elements in A whose sum is exactly x.
More …#Github 블로그 만들기
Given a positive integer N, check if N is a power of 2.
More …You are given two numbers A and B. Write a program to count number of bits needed to be flipped to convert A to B.
More …Given a byte, swap the two nibbles in it. For example 100 is be represented as 01100100 in a byte (or 8 bits). The two nibbles are (0110) and (0100). If we swap the two nibbles, we get 01000110 which is 70 in decimal.
More …Given a string, remove spaces from it
More …Given a string, print all permutations of a given string.
More …