Given a Matrix, get index of rows with K as elements. Input : test_list = [[4, 5, 6], [1, 4, 5], [6, 9, 1], [0, 3 ,1]], K = 6 Output : Read more →
Latest tutorials
505 postsGenerally, we use swapcase() to swap strings in Python. What if we are asked to do swapping without using the method. In this article, I will be sharing python program to swap Read more →
Given a set, test if any element from range exists in set. Input : test_set = {1, 5, 2, 7, 3, 4, 10, 14}, strt, end = 8, 12 Output : True Read more →
Given a tuple list with probability, get a random tuple. Input : test_list = [(4, 5), (7, 6), (1, 0), (3, 4)], prob_list = [0.4, 0.3, 0.1, 0.2] Output : [(7, 6)] Read more →
User Diagram Protocol (UDP) may be a connectionless protocol that’s located in between application layer and IP layer. It’s mainly used for broadcasting messages over a network. aside from that it acts Read more →
Transmission Control Protocol (TCP) may be a sort of communication protocol that interconnects different networking devices. It is the essential way of how applications are getting to communicate across a network (Allowing Read more →
Barcode reader may be a sort of scanner device that reads dark and white bars which contains pieces of data (Descriptive data of numbers and letters). It basically works using the electro-optical Read more →
MongoDB is one of the popular NoSQL database, is an open-source document-oriented database. The term ‘NoSQL’ means ‘not only SQL or non-relational’. It provides an altogether different mechanism for storage and retrieval Read more →
According to Brewer’s theorem (also called CAP theorem), any distributed data store (like a database) can only provide two of the following three guarantees: Consistency Availability Partition tolerance Now when it comes Read more →
Given a binary matrix of order m*n, the task is to find the distance of nearest 1 for each 0 in the matrix and print final distance matrix. From any cell (i,j), Read more →